Filename | /Users/timbo/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/parent.pm |
Statements | Executed 20 statements in 208µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 20µs | 30µs | import | parent::
1 | 1 | 1 | 11µs | 23µs | BEGIN@2 | parent::
2 | 1 | 1 | 10µs | 10µs | CORE:subst (opcode) | parent::
1 | 1 | 1 | 8µs | 29µs | BEGIN@3 | parent::
1 | 1 | 1 | 7µs | 17µs | BEGIN@25 | parent::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package parent; | ||||
2 | 2 | 24µs | 2 | 35µs | # spent 23µs (11+12) within parent::BEGIN@2 which was called:
# once (11µs+12µs) by File::Temp::BEGIN@32 at line 2 # spent 23µs making 1 call to parent::BEGIN@2
# spent 12µs making 1 call to strict::import |
3 | 2 | 103µs | 2 | 51µs | # spent 29µs (8+22) within parent::BEGIN@3 which was called:
# once (8µs+22µs) by File::Temp::BEGIN@32 at line 3 # spent 29µs making 1 call to parent::BEGIN@3
# spent 22µs making 1 call to vars::import |
4 | 1 | 500ns | $VERSION = '0.225'; | ||
5 | |||||
6 | # spent 30µs (20+10) within parent::import which was called:
# once (20µs+10µs) by File::Temp::BEGIN@32 at line 32 of File/Temp.pm | ||||
7 | 1 | 400ns | my $class = shift; | ||
8 | |||||
9 | 1 | 400ns | my $inheritor = caller(0); | ||
10 | |||||
11 | 1 | 800ns | if ( @_ and $_[0] eq '-norequire' ) { | ||
12 | shift @_; | ||||
13 | } else { | ||||
14 | 1 | 2µs | for ( my @filename = @_ ) { | ||
15 | 2 | 300ns | if ( $_ eq $inheritor ) { | ||
16 | warn "Class '$inheritor' tried to inherit from itself\n"; | ||||
17 | }; | ||||
18 | |||||
19 | 2 | 16µs | 2 | 10µs | s{::|'}{/}g; # spent 10µs making 2 calls to parent::CORE:subst, avg 5µs/call |
20 | 2 | 2µs | require "$_.pm"; # dies if the file is not found | ||
21 | } | ||||
22 | } | ||||
23 | |||||
24 | { | ||||
25 | 3 | 50µs | 2 | 26µs | # spent 17µs (7+10) within parent::BEGIN@25 which was called:
# once (7µs+10µs) by File::Temp::BEGIN@32 at line 25 # spent 17µs making 1 call to parent::BEGIN@25
# spent 10µs making 1 call to strict::unimport |
26 | 1 | 6µs | push @{"$inheritor\::ISA"}, @_; | ||
27 | }; | ||||
28 | }; | ||||
29 | |||||
30 | 1 | 2µs | "All your base are belong to us" | ||
31 | |||||
32 | __END__ | ||||
# spent 10µs within parent::CORE:subst which was called 2 times, avg 5µs/call:
# 2 times (10µs+0s) by parent::import at line 19, avg 5µs/call |