Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/5.38.2/parent.pm |
Statements | Executed 48 statements in 250µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
5 | 5 | 3 | 426µs | 514µs | import | parent::
1 | 1 | 1 | 8µs | 10µs | BEGIN@2 | parent::
1 | 1 | 1 | 5µs | 9µs | BEGIN@21 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 75µs | 2 | 12µs | # spent 10µs (8+2) within parent::BEGIN@2 which was called:
# once (8µs+2µs) by File::Temp::BEGIN@167 at line 2 # spent 10µs making 1 call to parent::BEGIN@2
# spent 2µs making 1 call to strict::import |
3 | |||||
4 | 1 | 300ns | our $VERSION = '0.241'; | ||
5 | |||||
6 | # spent 514µs (426+88) within parent::import which was called 5 times, avg 103µs/call:
# once (385µs+77µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 178 of Encode.pm
# once (12µs+5µs) by File::Temp::BEGIN@167 at line 167 of File/Temp.pm
# once (11µs+2µs) by Encode::utf8::BEGIN@215 at line 215 of Encode.pm
# once (10µs+3µs) by Encode::XS::BEGIN@210 at line 210 of Encode.pm
# once (8µs+1000ns) by Time::Local::BEGIN@10 at line 10 of Time/Local.pm | ||||
7 | 5 | 1µs | my $class = shift; | ||
8 | |||||
9 | 5 | 2µs | my $inheritor = caller(0); | ||
10 | |||||
11 | 5 | 3µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | 5 | 5µs | for ( my @filename = @_ ) { | ||
15 | 6 | 26µs | 6 | 15µs | s{::|'}{/}g; # spent 15µs making 6 calls to CORE::subst, avg 2µs/call |
16 | 6 | 59µs | require "$_.pm"; # dies if the file is not found | ||
17 | } | ||||
18 | } | ||||
19 | |||||
20 | { | ||||
21 | 7 | 54µs | 2 | 13µs | # spent 9µs (5+4) within parent::BEGIN@21 which was called:
# once (5µs+4µs) by File::Temp::BEGIN@167 at line 21 # spent 9µs making 1 call to parent::BEGIN@21
# spent 4µs making 1 call to strict::unimport |
22 | 5 | 23µs | push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected | ||
23 | }; | ||||
24 | }; | ||||
25 | |||||
26 | 1 | 2µs | 1; | ||
27 | |||||
28 | __END__ |