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