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