Filename | /usr/local/perls/perl-5.26.1/lib/5.26.1/parent.pm |
Statements | Executed 42 statements in 3.23ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 4 | 4 | 8.75ms | 18.6ms | import (recurses: max depth 1, inclusive time 2.60ms) | parent::
1 | 1 | 1 | 419µs | 578µs | BEGIN@3 | parent::
1 | 1 | 1 | 44µs | 50µs | BEGIN@2 | parent::
5 | 1 | 1 | 44µs | 44µs | CORE:subst (opcode) | parent::
1 | 1 | 1 | 19µs | 39µs | BEGIN@21 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 462µs | 2 | 56µs | # spent 50µs (44+6) within parent::BEGIN@2 which was called:
# once (44µs+6µs) by URI::URL::BEGIN@6 at line 2 # spent 50µs making 1 call to parent::BEGIN@2
# spent 6µs making 1 call to strict::import |
3 | 2 | 307µs | 2 | 737µs | # spent 578µs (419+159) within parent::BEGIN@3 which was called:
# once (419µs+159µs) by URI::URL::BEGIN@6 at line 3 # spent 578µs making 1 call to parent::BEGIN@3
# spent 159µs making 1 call to vars::import |
4 | 1 | 1µs | $VERSION = '0.236'; | ||
5 | |||||
6 | # spent 18.6ms (8.75+9.88) within parent::import which was called 4 times, avg 4.66ms/call:
# once (1.40ms+9.40ms) by URI::URL::BEGIN@6 at line 6 of URI/URL.pm
# once (3.46ms+2.83ms) by URI::file::BEGIN@6 at line 6 of URI/file.pm
# once (1.44ms+92µs) by URI::file::Unix::BEGIN@6 at line 6 of URI/file/Unix.pm
# once (2.45ms+-2.45ms) by URI::_generic::BEGIN@6 at line 6 of URI/_generic.pm | ||||
7 | 4 | 4µs | my $class = shift; | ||
8 | |||||
9 | 4 | 6µs | my $inheritor = caller(0); | ||
10 | |||||
11 | 4 | 6µs | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | 4 | 26µs | for ( my @filename = @_ ) { | ||
15 | 5 | 74µs | 5 | 44µs | s{::|'}{/}g; # spent 44µs making 5 calls to parent::CORE:subst, avg 9µs/call |
16 | 5 | 2.10ms | require "$_.pm"; # dies if the file is not found | ||
17 | } | ||||
18 | } | ||||
19 | |||||
20 | { | ||||
21 | 6 | 171µs | 2 | 59µs | # spent 39µs (19+20) within parent::BEGIN@21 which was called:
# once (19µs+20µs) by URI::URL::BEGIN@6 at line 21 # spent 39µs making 1 call to parent::BEGIN@21
# spent 20µs making 1 call to strict::unimport |
22 | 4 | 71µs | push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected | ||
23 | }; | ||||
24 | }; | ||||
25 | |||||
26 | 1 | 5µs | 1; | ||
27 | |||||
28 | __END__ | ||||
# spent 44µs within parent::CORE:subst which was called 5 times, avg 9µs/call:
# 5 times (44µs+0s) by parent::import at line 15, avg 9µs/call |