| Filename | /usr/share/perl/5.10/version.pm |
| Statements | Executed 34 statements in 727µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 75µs | 75µs | version::BEGIN@4 |
| 2 | 2 | 2 | 51µs | 51µs | version::import |
| 1 | 1 | 1 | 19µs | 28µs | version::BEGIN@5 |
| 1 | 1 | 1 | 19µs | 197µs | version::BEGIN@7 |
| 1 | 1 | 1 | 16µs | 42µs | version::BEGIN@15 |
| 1 | 1 | 1 | 15µs | 15µs | version::(bool (xsub) |
| 1 | 1 | 1 | 12µs | 18µs | version::__ANON__[:47] |
| 1 | 1 | 1 | 7µs | 7µs | version::(cmp (xsub) |
| 1 | 1 | 1 | 6µs | 6µs | version::qv (xsub) |
| 0 | 0 | 0 | 0s | 0s | version::__ANON__[:41] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | #!perl -w | ||||
| 2 | package version; | ||||
| 3 | |||||
| 4 | 3 | 115µs | 1 | 75µs | # spent 75µs within version::BEGIN@4 which was called:
# once (75µs+0s) by Module::Load::Conditional::BEGIN@12 at line 4 # spent 75µs making 1 call to version::BEGIN@4 |
| 5 | 3 | 56µs | 2 | 36µs | # spent 28µs (19+9) within version::BEGIN@5 which was called:
# once (19µs+9µs) by Module::Load::Conditional::BEGIN@12 at line 5 # spent 28µs making 1 call to version::BEGIN@5
# spent 9µs making 1 call to strict::import |
| 6 | |||||
| 7 | 3 | 89µs | 2 | 375µs | # spent 197µs (19+178) within version::BEGIN@7 which was called:
# once (19µs+178µs) by Module::Load::Conditional::BEGIN@12 at line 7 # spent 197µs making 1 call to version::BEGIN@7
# spent 178µs making 1 call to vars::import |
| 8 | |||||
| 9 | 1 | 1µs | $VERSION = 0.77; | ||
| 10 | |||||
| 11 | 1 | 1µs | $CLASS = 'version'; | ||
| 12 | |||||
| 13 | # Preloaded methods go here. | ||||
| 14 | # spent 51µs within version::import which was called 2 times, avg 25µs/call:
# once (27µs+0s) by Module::Load::Conditional::BEGIN@12 at line 12 of Module/Load/Conditional.pm
# once (23µs+0s) by Koha::DateUtils::BEGIN@27 at line 27 of /usr/share/koha/lib/Koha/DateUtils.pm | ||||
| 15 | 3 | 382µs | 2 | 67µs | # spent 42µs (16+25) within version::BEGIN@15 which was called:
# once (16µs+25µs) by Module::Load::Conditional::BEGIN@12 at line 15 # spent 42µs making 1 call to version::BEGIN@15
# spent 25µs making 1 call to strict::unimport |
| 16 | 2 | 4µs | my ($class) = shift; | ||
| 17 | |||||
| 18 | # Set up any derived class | ||||
| 19 | 2 | 2µs | unless ($class eq 'version') { | ||
| 20 | local $^W; | ||||
| 21 | *{$class.'::declare'} = \&version::declare; | ||||
| 22 | *{$class.'::qv'} = \&version::qv; | ||||
| 23 | } | ||||
| 24 | |||||
| 25 | 2 | 900ns | my %args; | ||
| 26 | 2 | 2µs | if (@_) { # any remaining terms are arguments | ||
| 27 | map { $args{$_} = 1 } @_ | ||||
| 28 | } | ||||
| 29 | else { # no parameters at all on use line | ||||
| 30 | 2 | 6µs | %args = | ||
| 31 | ( | ||||
| 32 | qv => 1, | ||||
| 33 | 'UNIVERSAL::VERSION' => 1, | ||||
| 34 | ); | ||||
| 35 | } | ||||
| 36 | |||||
| 37 | 2 | 3µs | my $callpkg = caller(); | ||
| 38 | |||||
| 39 | 2 | 2µs | if (exists($args{declare})) { | ||
| 40 | *{$callpkg."::declare"} = | ||||
| 41 | sub {return $class->declare(shift) } | ||||
| 42 | unless defined(&{$callpkg.'::declare'}); | ||||
| 43 | } | ||||
| 44 | |||||
| 45 | 2 | 22µs | if (exists($args{qv})) { | ||
| 46 | 1 | 19µs | 1 | 6µs | *{$callpkg."::qv"} = # spent 6µs making 1 call to version::qv |
| 47 | # spent 18µs (12+6) within version::__ANON__[/usr/share/perl/5.10/version.pm:47] which was called:
# once (12µs+6µs) by C4::Letters::BEGIN@32 at line 27 of /usr/share/koha/lib/Koha/DateUtils.pm | ||||
| 48 | unless defined(&{"$callpkg\::qv"}); | ||||
| 49 | } | ||||
| 50 | |||||
| 51 | 2 | 17µs | if (exists($args{'VERSION'})) { | ||
| 52 | *{$callpkg."::VERSION"} = \&version::_VERSION; | ||||
| 53 | } | ||||
| 54 | } | ||||
| 55 | |||||
| 56 | 1 | 6µs | 1; | ||
# spent 15µs within version::(bool which was called:
# once (15µs+0s) by DynaLoader::BEGIN@24 at line 47 of Config.pm | |||||
# spent 7µs within version::(cmp which was called:
# once (7µs+0s) by DynaLoader::BEGIN@24 at line 50 of Config.pm | |||||
# spent 6µs within version::qv which was called:
# once (6µs+0s) by version::__ANON__[/usr/share/perl/5.10/version.pm:47] at line 46 |