← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename/usr/share/perl5/CGI/Session/Serialize/yaml.pm
StatementsExecuted 17 statements in 414µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11121µs189µsCGI::Session::Serialize::yaml::::thawCGI::Session::Serialize::yaml::thaw
11119µs39µsCGI::Session::Serialize::yaml::::BEGIN@3CGI::Session::Serialize::yaml::BEGIN@3
1118µs80µsCGI::Session::Serialize::yaml::::freezeCGI::Session::Serialize::yaml::freeze
1117µs7µ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µs258µ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
use strict;
# spent 39µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@3 # spent 19µs making 1 call to strict::import
42246µs17µ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
use CGI::Session::ErrorHandler;
# spent 7µs making 1 call to CGI::Session::Serialize::yaml::BEGIN@4
5
61600ns$CGI::Session::Serialize::yaml::VERSION = '4.26';
719µs@CGI::Session::Serialize::yaml::ISA = ( "CGI::Session::ErrorHandler" );
81100nsour $Flavour;
9
101400nsunless($Flavour) {
11379µ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__;
131700ns $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
sub freeze {
171600ns my ($self, $data) = @_;
18111µs272µ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
sub thaw {
231700ns my ($self, $string) = @_;
24122µs2168µ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
2716µs1;
28
29__END__;