Filename | /usr/share/perl5/CGI/Session/Serialize/yaml.pm |
Statements | Executed 17 statements in 414µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 21µs | 189µs | thaw | CGI::Session::Serialize::yaml::
1 | 1 | 1 | 19µs | 39µs | BEGIN@3 | CGI::Session::Serialize::yaml::
1 | 1 | 1 | 8µs | 80µs | freeze | CGI::Session::Serialize::yaml::
1 | 1 | 1 | 7µs | 7µs | BEGIN@4 | CGI::Session::Serialize::yaml::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package CGI::Session::Serialize::yaml; | ||||
2 | |||||
3 | 2 | 38µs | 2 | 58µs | # spent 39µs (19+19) within CGI::Session::Serialize::yaml::BEGIN@3 which was called:
# once (19µs+19µs) by CGI::Session::_load_pluggables at line 3 # spent 39µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@3
# spent 19µs making 1 call to strict::import |
4 | 2 | 246µs | 1 | 7µs | # spent 7µs within CGI::Session::Serialize::yaml::BEGIN@4 which was called:
# once (7µs+0s) by CGI::Session::_load_pluggables at line 4 # spent 7µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@4 |
5 | |||||
6 | 1 | 600ns | $CGI::Session::Serialize::yaml::VERSION = '4.26'; | ||
7 | 1 | 9µs | @CGI::Session::Serialize::yaml::ISA = ( "CGI::Session::ErrorHandler" ); | ||
8 | 1 | 100ns | our $Flavour; | ||
9 | |||||
10 | 1 | 400ns | unless($Flavour) { | ||
11 | 3 | 79µs | my $package = (grep { eval("use $_ (); 1;") } qw(YAML::Syck YAML))[0] # spent 18µs executing statements in string eval # includes 8µs spent executing 1 call to 1 sub defined therein. # spent 18µs executing statements in string eval # includes 9µs spent executing 1 call to 1 sub defined therein. | ||
12 | or die "Either YAML::Syck or YAML are required to use ", __PACKAGE__; | ||||
13 | 1 | 700ns | $Flavour = $package; | ||
14 | } | ||||
15 | |||||
16 | # spent 80µs (8+72) within CGI::Session::Serialize::yaml::freeze which was called:
# once (8µs+72µs) by CGI::Session::flush at line 247 of CGI/Session.pm | ||||
17 | 1 | 600ns | my ($self, $data) = @_; | ||
18 | 1 | 11µs | 2 | 72µs | return $Flavour->can('Dump')->($data); # spent 69µs making 1 call to YAML::Syck::Dump
# spent 3µs making 1 call to UNIVERSAL::can |
19 | } | ||||
20 | |||||
21 | |||||
22 | # spent 189µs (21+168) within CGI::Session::Serialize::yaml::thaw which was called:
# once (21µs+168µs) by CGI::Session::load at line 728 of CGI/Session.pm | ||||
23 | 1 | 700ns | my ($self, $string) = @_; | ||
24 | 1 | 22µs | 2 | 168µs | return ($Flavour->can('Load')->($string))[0]; # spent 166µs making 1 call to YAML::Syck::Load
# spent 3µs making 1 call to UNIVERSAL::can |
25 | } | ||||
26 | |||||
27 | 1 | 6µs | 1; | ||
28 | |||||
29 | __END__; |