Filename | /usr/share/perl/5.14/parent.pm |
Statements | Executed 54 statements in 1.05ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 4 | 4 | 1.91ms | 2.94ms | import (recurses: max depth 1, inclusive time 116µs) | parent::
6 | 1 | 1 | 60µs | 60µs | CORE:subst (opcode) | parent::
1 | 1 | 1 | 31µs | 37µs | BEGIN@2 | parent::
1 | 1 | 1 | 18µs | 43µs | BEGIN@25 | parent::
1 | 1 | 1 | 13µs | 55µs | BEGIN@3 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 54µs | 2 | 43µs | # spent 37µs (31+6) within parent::BEGIN@2 which was called:
# once (31µs+6µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 2 # spent 37µs making 1 call to parent::BEGIN@2
# spent 6µs making 1 call to strict::import |
3 | 2 | 273µs | 2 | 96µs | # spent 55µs (13+42) within parent::BEGIN@3 which was called:
# once (13µs+42µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 3 # spent 55µs making 1 call to parent::BEGIN@3
# spent 42µs making 1 call to vars::import |
4 | 1 | 1µs | $VERSION = '0.225'; | ||
5 | |||||
6 | # spent 2.94ms (1.91+1.03) within parent::import which was called 4 times, avg 735µs/call:
# once (1.78ms+1.11ms) by DateTime::TimeZone::Floating::BEGIN@12 at line 12 of DateTime/TimeZone/Floating.pm
# once (40µs+11µs) by DateTime::TimeZone::Local::Unix::BEGIN@13 at line 13 of DateTime/TimeZone/Local/Unix.pm
# once (45µs+-45µs) by DateTime::TimeZone::UTC::BEGIN@12 at line 12 of DateTime/TimeZone/UTC.pm
# once (51µs+-51µs) by DateTime::TimeZone::OffsetOnly::BEGIN@12 at line 12 of DateTime/TimeZone/OffsetOnly.pm | ||||
7 | 16 | 50µs | my $class = shift; | ||
8 | |||||
9 | my $inheritor = caller(0); | ||||
10 | |||||
11 | 4 | 18µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | for ( my @filename = @_ ) { | ||||
15 | 18 | 449µs | if ( $_ eq $inheritor ) { | ||
16 | warn "Class '$inheritor' tried to inherit from itself\n"; | ||||
17 | }; | ||||
18 | |||||
19 | 6 | 60µs | s{::|'}{/}g; # spent 60µs making 6 calls to parent::CORE:subst, avg 10µs/call | ||
20 | require "$_.pm"; # dies if the file is not found | ||||
21 | } | ||||
22 | } | ||||
23 | |||||
24 | { | ||||
25 | 2 | 112µs | 2 | 68µs | # spent 43µs (18+25) within parent::BEGIN@25 which was called:
# once (18µs+25µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 25 # spent 43µs making 1 call to parent::BEGIN@25
# spent 25µs making 1 call to strict::unimport |
26 | 8 | 84µs | push @{"$inheritor\::ISA"}, @_; | ||
27 | }; | ||||
28 | }; | ||||
29 | |||||
30 | 1 | 6µs | "All your base are belong to us" | ||
31 | |||||
32 | __END__ | ||||
# spent 60µs within parent::CORE:subst which was called 6 times, avg 10µs/call:
# 6 times (60µs+0s) by parent::import at line 19, avg 10µs/call |