| Filename | /Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/parent.pm |
| Statements | Executed 48 statements in 718µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 5 | 5 | 3 | 844µs | 986µs | parent::import |
| 6 | 1 | 1 | 22µs | 22µs | parent::CORE:subst (opcode) |
| 1 | 1 | 1 | 19µs | 22µs | parent::BEGIN@2 |
| 1 | 1 | 1 | 6µs | 12µs | parent::BEGIN@21 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package parent; | ||||
| 2 | 2 | 90µs | 2 | 25µs | # spent 22µs (19+3) within parent::BEGIN@2 which was called:
# once (19µs+3µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 2 # spent 22µ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 986µs (844+142) within parent::import which was called 5 times, avg 197µs/call:
# once (798µs+126µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 178 of Encode.pm
# once (18µs+9µs) by List::MoreUtils::BEGIN@66 at line 66 of List/MoreUtils.pm
# once (16µs+2µs) by Params::Util::BEGIN@61 at line 61 of Params/Util.pm
# once (8µs+3µ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 | 2µs | my $inheritor = caller(0); | ||
| 10 | |||||
| 11 | 5 | 4µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
| 12 | shift @_; | ||||
| 13 | } else { | ||||
| 14 | 5 | 5µs | for ( my @filename = @_ ) { | ||
| 15 | 6 | 34µs | 6 | 22µs | s{::|'}{/}g; # spent 22µs making 6 calls to parent::CORE:subst, avg 4µs/call |
| 16 | 6 | 477µs | require "$_.pm"; # dies if the file is not found | ||
| 17 | } | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | { | ||||
| 21 | 7 | 78µs | 2 | 18µs | # spent 12µs (6+6) within parent::BEGIN@21 which was called:
# once (6µs+6µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 21 # spent 12µs making 1 call to parent::BEGIN@21
# spent 6µs making 1 call to strict::unimport |
| 22 | 5 | 25µs | push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected | ||
| 23 | }; | ||||
| 24 | }; | ||||
| 25 | |||||
| 26 | 1 | 2µs | 1; | ||
| 27 | |||||
| 28 | __END__ | ||||
# spent 22µs within parent::CORE:subst which was called 6 times, avg 4µs/call:
# 6 times (22µs+0s) by parent::import at line 15, avg 4µs/call |