Filename | /Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/parent.pm |
Statements | Executed 48 statements in 425µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
5 | 5 | 3 | 540µs | 676µs | import | parent::
6 | 1 | 1 | 29µs | 29µs | CORE:subst (opcode) | parent::
1 | 1 | 1 | 17µs | 20µs | BEGIN@2 | parent::
1 | 1 | 1 | 7µs | 13µs | BEGIN@21 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 83µs | 2 | 23µs | # spent 20µs (17+3) within parent::BEGIN@2 which was called:
# once (17µs+3µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 2 # spent 20µs making 1 call to parent::BEGIN@2
# spent 3µs making 1 call to strict::import |
3 | |||||
4 | 1 | 0s | our $VERSION = '0.238'; | ||
5 | |||||
6 | # spent 676µs (540+136) within parent::import which was called 5 times, avg 135µs/call:
# once (440µs+112µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 178 of Encode.pm
# once (53µs+13µs) by List::MoreUtils::BEGIN@66 at line 66 of List/MoreUtils.pm
# once (37µs+4µs) by Params::Util::BEGIN@61 at line 61 of Params/Util.pm
# once (6µs+5µs) by Encode::XS::BEGIN@210 at line 210 of Encode.pm
# once (4µs+2µs) by Encode::utf8::BEGIN@215 at line 215 of Encode.pm | ||||
7 | 5 | 1µs | my $class = shift; | ||
8 | |||||
9 | 5 | 9µs | my $inheritor = caller(0); | ||
10 | |||||
11 | 5 | 4µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | 5 | 26µs | for ( my @filename = @_ ) { | ||
15 | 6 | 44µs | 6 | 29µs | s{::|'}{/}g; # spent 29µs making 6 calls to parent::CORE:subst, avg 5µs/call |
16 | 6 | 129µs | require "$_.pm"; # dies if the file is not found | ||
17 | } | ||||
18 | } | ||||
19 | |||||
20 | { | ||||
21 | 7 | 95µs | 2 | 19µs | # spent 13µs (7+6) within parent::BEGIN@21 which was called:
# once (7µs+6µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 21 # spent 13µs making 1 call to parent::BEGIN@21
# spent 6µs making 1 call to strict::unimport |
22 | 5 | 32µs | push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected | ||
23 | }; | ||||
24 | }; | ||||
25 | |||||
26 | 1 | 2µs | 1; | ||
27 | |||||
28 | __END__ | ||||
# spent 29µs within parent::CORE:subst which was called 6 times, avg 5µs/call:
# 6 times (29µs+0s) by parent::import at line 15, avg 5µs/call |