← Index
NYTProf Performance Profile   « line view »
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:33:30 2016

Filename/usr/share/perl5/CGI/Session/Serialize/yaml.pm
StatementsExecuted 8 statements in 362µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
911139µs1.04msCGI::Session::Serialize::yaml::::thawCGI::Session::Serialize::yaml::thaw
91187µs686µsCGI::Session::Serialize::yaml::::freezeCGI::Session::Serialize::yaml::freeze
11117µs27µsCGI::Session::Serialize::yaml::::BEGIN@3CGI::Session::Serialize::yaml::BEGIN@3
1116µs6µsCGI::Session::Serialize::yaml::::BEGIN@4CGI::Session::Serialize::yaml::BEGIN@4
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package CGI::Session::Serialize::yaml;
2
3238µs
# spent 27µs (17+10) within CGI::Session::Serialize::yaml::BEGIN@3 which was called: # once (17µs+10µs) by CGI::Session::_load_pluggables at line 3
use strict;
# spent 27µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@3 # spent 10µs making 1 call to strict::import
416µs
# spent 6µs within CGI::Session::Serialize::yaml::BEGIN@4 which was called: # once (6µs+0s) by CGI::Session::_load_pluggables at line 4
use CGI::Session::ErrorHandler;
# spent 6µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@4
5
6$CGI::Session::Serialize::yaml::VERSION = '4.26';
7@CGI::Session::Serialize::yaml::ISA = ( "CGI::Session::ErrorHandler" );
8our $Flavour;
9
10unless($Flavour) {
11 my $package = (grep { eval("use $_ (); 1;") } qw(YAML::Syck YAML))[0]
# spent 0s executing statements in string eval
# includes 8µs spent executing 1 call to 1 sub defined therein. # spent 0s executing statements in string eval
# includes 6µs spent executing 1 call to 1 sub defined therein.
12 or die "Either YAML::Syck or YAML are required to use ", __PACKAGE__;
13 $Flavour = $package;
14}
15
16
# spent 686µs (87+600) within CGI::Session::Serialize::yaml::freeze which was called 9 times, avg 76µs/call: # 9 times (87µs+600µs) by CGI::Session::flush at line 247 of CGI/Session.pm, avg 76µs/call
sub freeze {
1721µs my ($self, $data) = @_;
182137µs18600µs return $Flavour->can('Dump')->($data);
# spent 564µs making 9 calls to YAML::Syck::Dump, avg 63µs/call # spent 36µs making 9 calls to UNIVERSAL::can, avg 4µs/call
19}
20
21
22
# spent 1.04ms (139µs+903µs) within CGI::Session::Serialize::yaml::thaw which was called 9 times, avg 116µs/call: # 9 times (139µs+903µs) by CGI::Session::load at line 728 of CGI/Session.pm, avg 116µs/call
sub thaw {
232900ns my ($self, $string) = @_;
242223µs18903µs return ($Flavour->can('Load')->($string))[0];
# spent 858µs making 9 calls to YAML::Syck::Load, avg 95µs/call # spent 46µs making 9 calls to UNIVERSAL::can, avg 5µs/call
25}
26
271;
28
29__END__;