← 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:47 2015

Filename/usr/share/perl/5.20/version.pm
StatementsExecuted 59 statements in 1.11ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
262614225µs225µsversion::::_VERSIONversion::_VERSION (xsub)
33352µs52µsversion::::importversion::import
11117µs17µsversion::::BEGIN@4version::BEGIN@4
11114µs24µsversion::::BEGIN@5version::BEGIN@5
11110µs15µsversion::::__ANON__[:52]version::__ANON__[:52]
1116µs6µsversion::::(boolversion::(bool (xsub)
1116µs14µsversion::::BEGIN@20version::BEGIN@20
1116µs71µsversion::::BEGIN@7version::BEGIN@7
1115µs5µsversion::::(cmpversion::(cmp (xsub)
1115µs5µsversion::::qvversion::qv (xsub)
0000s0sversion::::__ANON__[:46]version::__ANON__[:46]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#!perl -w
2package version;
3
4241µs117µs
# spent 17µs within version::BEGIN@4 which was called: # once (17µs+0s) by Module::Load::Conditional::BEGIN@12 at line 4
use 5.006002;
# spent 17µs making 1 call to version::BEGIN@4
5227µs235µs
# spent 24µs (14+10) within version::BEGIN@5 which was called: # once (14µs+10µs) by Module::Load::Conditional::BEGIN@12 at line 5
use strict;
# spent 24µs making 1 call to version::BEGIN@5 # spent 10µs making 1 call to strict::import
6
7273µs2136µs
# spent 71µs (6+65) within version::BEGIN@7 which was called: # once (6µs+65µs) by Module::Load::Conditional::BEGIN@12 at line 7
use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv);
# spent 71µs making 1 call to version::BEGIN@7 # spent 65µs making 1 call to vars::import
8
91200ns$VERSION = 0.9909;
101200ns$CLASS = 'version';
11
12# avoid using Exporter
131636µsrequire version::regex;
1411µs*version::is_lax = \&version::regex::is_lax;
151300ns*version::is_strict = \&version::regex::is_strict;
161300ns*LAX = \$version::regex::LAX;
171100ns*STRICT = \$version::regex::STRICT;
18
19
# spent 52µs within version::import which was called 3 times, avg 17µs/call: # once (22µs+0s) by Koha::DateUtils::BEGIN@27 at line 27 of Koha/DateUtils.pm # once (18µs+0s) by Module::Load::Conditional::BEGIN@12 at line 12 of Module/Load/Conditional.pm # once (12µs+0s) by Module::Metadata::BEGIN@21 at line 21 of Module/Metadata.pm
sub import {
202255µs222µs
# spent 14µs (6+8) within version::BEGIN@20 which was called: # once (6µs+8µs) by Module::Load::Conditional::BEGIN@12 at line 20
no strict 'refs';
# spent 14µs making 1 call to version::BEGIN@20 # spent 8µs making 1 call to strict::unimport
2132µs my ($class) = shift;
22
23 # Set up any derived class
2432µs unless ($class eq $CLASS) {
25 local $^W;
26 *{$class.'::declare'} = \&{$CLASS.'::declare'};
27 *{$class.'::qv'} = \&{$CLASS.'::qv'};
28 }
29
303700ns my %args;
3131µs if (@_) { # any remaining terms are arguments
32 map { $args{$_} = 1 } @_
33 }
34 else { # no parameters at all on use line
3534µs %args =
36 (
37 qv => 1,
38 'UNIVERSAL::VERSION' => 1,
39 );
40 }
41
4232µs my $callpkg = caller();
43
443900ns if (exists($args{declare})) {
45 *{$callpkg.'::declare'} =
46 sub {return $class->declare(shift) }
47 unless defined(&{$callpkg.'::declare'});
48 }
49
50318µs if (exists($args{qv})) {
51115µs15µs *{$callpkg.'::qv'} =
# spent 5µs making 1 call to version::qv
52
# spent 15µs (10+5) within version::__ANON__[/usr/share/perl/5.20/version.pm:52] which was called: # once (10µs+5µs) by C4::Koha::BEGIN@28 at line 27 of Koha/DateUtils.pm
sub {return $class->qv(shift) }
53 unless defined(&{$callpkg.'::qv'});
54 }
55
5632µs if (exists($args{'UNIVERSAL::VERSION'})) {
5735µs local $^W;
58 *UNIVERSAL::VERSION
5938µs = \&{$CLASS.'::_VERSION'};
60 }
61
623700ns if (exists($args{'VERSION'})) {
63 *{$callpkg.'::VERSION'} = \&{$CLASS.'::_VERSION'};
64 }
65
663800ns if (exists($args{'is_strict'})) {
67 *{$callpkg.'::is_strict'} = \&{$CLASS.'::is_strict'}
68 unless defined(&{$callpkg.'::is_strict'});
69 }
70
71312µs if (exists($args{'is_lax'})) {
72 *{$callpkg.'::is_lax'} = \&{$CLASS.'::is_lax'}
73 unless defined(&{$callpkg.'::is_lax'});
74 }
75}
76
77
7813µs1;
 
# spent 6µs within version::(bool which was called: # once (6µs+0s) by DynaLoader::BEGIN@21 at line 59 of Config.pm
sub version::(bool; # xsub
# spent 5µs within version::(cmp which was called: # once (5µs+0s) by DynaLoader::BEGIN@21 at line 62 of Config.pm
sub version::(cmp; # xsub
# spent 225µs within version::_VERSION which was called 26 times, avg 9µs/call: # once (22µs+0s) by Text::CSV::BEGIN@1 at line 1 of (eval 60)[Text/CSV.pm:151] # once (14µs+0s) by DateTime::BEGIN@14 at line 14 of DateTime.pm # once (12µs+0s) by DateTime::Format::Builder::BEGIN@11 at line 11 of DateTime/Format/Builder.pm # once (11µs+0s) by C4::Letters::BEGIN@23 at line 1 of (eval 54)[MIME/Lite.pm:447] # once (10µs+0s) by DateTime::Set::BEGIN@9 at line 9 of DateTime/Set.pm # once (9µs+0s) by Module::Metadata::BEGIN@21 at line 21 of Module/Metadata.pm # once (9µs+0s) by DateTime::Format::Builder::Parser::Strptime::BEGIN@10 at line 10 of DateTime/Format/Builder/Parser/Strptime.pm # once (9µs+0s) by DateTime::Format::Builder::Parser::BEGIN@375 at line 375 of DateTime/Format/Builder/Parser.pm # once (9µs+0s) by Crypt::Eksblowfish::Bcrypt::BEGIN@42 at line 42 of Crypt/Eksblowfish/Bcrypt.pm # once (9µs+0s) by DateTime::Set::BEGIN@6 at line 6 of DateTime/Set.pm # once (9µs+0s) by Set::Infinite::_recurrence::BEGIN@15 at line 15 of Set/Infinite/_recurrence.pm # once (8µs+0s) by DateTime::Format::Strptime::BEGIN@7 at line 7 of DateTime/Format/Strptime.pm # once (8µs+0s) by File::Temp::BEGIN@31 at line 31 of File/Temp.pm # once (8µs+0s) by Encode::BEGIN@12 at line 12 of Encode.pm # once (8µs+0s) by File::Temp::BEGIN@13 at line 13 of File/Temp.pm # once (7µs+0s) by File::Temp::BEGIN@11 at line 11 of File/Temp.pm # once (7µs+0s) by File::Temp::BEGIN@43 at line 43 of File/Temp.pm # once (7µs+0s) by JSON::BEGIN@2 at line 2 of (eval 67)[JSON.pm:252] # once (7µs+0s) by File::Temp::BEGIN@14 at line 14 of File/Temp.pm # once (6µs+0s) by DateTime::BEGIN@15 at line 15 of DateTime.pm # once (6µs+0s) by DateTime::Format::Strptime::BEGIN@8 at line 8 of DateTime/Format/Strptime.pm # once (6µs+0s) by DateTime::Format::Builder::BEGIN@12 at line 14 of DateTime/Format/Builder.pm # once (6µs+0s) by Crypt::Eksblowfish::Bcrypt::BEGIN@43 at line 43 of Crypt/Eksblowfish/Bcrypt.pm # once (6µs+0s) by DateTime::BEGIN@16 at line 17 of DateTime.pm # once (6µs+0s) by DateTime::Format::Strptime::BEGIN@10 at line 10 of DateTime/Format/Strptime.pm # once (6µs+0s) by DateTime::Format::Strptime::BEGIN@9 at line 9 of DateTime/Format/Strptime.pm
sub version::_VERSION; # xsub
# spent 5µs within version::qv which was called: # once (5µs+0s) by version::__ANON__[/usr/share/perl/5.20/version.pm:52] at line 51
sub version::qv; # xsub