| Filename | /usr/share/perl5/CGI/Session/Serialize/yaml.pm |
| Statements | Executed 8 statements in 362µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 9 | 1 | 1 | 139µs | 1.04ms | CGI::Session::Serialize::yaml::thaw |
| 9 | 1 | 1 | 87µs | 686µs | CGI::Session::Serialize::yaml::freeze |
| 1 | 1 | 1 | 17µs | 27µs | CGI::Session::Serialize::yaml::BEGIN@3 |
| 1 | 1 | 1 | 6µs | 6µs | CGI::Session::Serialize::yaml::BEGIN@4 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package CGI::Session::Serialize::yaml; | ||||
| 2 | |||||
| 3 | 2 | 38µ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 # spent 27µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@3
# spent 10µs making 1 call to strict::import | ||
| 4 | 1 | 6µ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 # 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" ); | ||||
| 8 | our $Flavour; | ||||
| 9 | |||||
| 10 | unless($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 | ||||
| 17 | 2 | 1µs | my ($self, $data) = @_; | ||
| 18 | 2 | 137µs | 18 | 600µ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 | ||||
| 23 | 2 | 900ns | my ($self, $string) = @_; | ||
| 24 | 2 | 223µs | 18 | 903µ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 | |||||
| 27 | 1; | ||||
| 28 | |||||
| 29 | __END__; |