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