Profile of parent.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:16:00 2016
Reported on Thu Jun 30 16:16:08 2016

Filename | /home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/parent.pm
Statements | Executed 36 statements in 968µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
3 | 3 | 3 | 1.55ms | 2.32ms | parent::::importparent::import (recurses: max depth 1, inclusive time 78µs)
5 | 1 | 1 | 34µs | 34µs | parent::::CORE:substparent::CORE:subst (opcode)
1 | 1 | 1 | 18µs | 20µs | parent::::BEGIN@2parent::BEGIN@2
1 | 1 | 1 | 9µs | 23µs | parent::::BEGIN@21parent::BEGIN@21
1 | 1 | 1 | 8µs | 32µs | parent::::BEGIN@3parent::BEGIN@3

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package parent;
2 | 2 | 31µs | 2 | 23µs | # spent 20µs (18+3) within parent::BEGIN@2 which was called: # once (18µs+3µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 2 use strict; # spent 20µs making 1 call to parent::BEGIN@2 # spent 3µs making 1 call to strict::import
3 | 2 | 136µs | 2 | 56µs | # spent 32µs (8+24) within parent::BEGIN@3 which was called: # once (8µs+24µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 3 use vars qw($VERSION); # spent 32µs making 1 call to parent::BEGIN@3 # spent 24µs making 1 call to vars::import
4 | 1 | 600ns |  |  | $VERSION = '0.234';
5 |  |  |  |  |
6 |  |  |  |  | # spent 2.32ms (1.55+767µs) within parent::import which was called 3 times, avg 772µs/call: # once (1.49ms+826µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 6 of DateTime/TimeZone/Floating.pm # once (25µs+-25µs) by DateTime::TimeZone::OffsetOnly::BEGIN@6 at line 6 of DateTime/TimeZone/OffsetOnly.pm # once (34µs+-34µs) by DateTime::TimeZone::UTC::BEGIN@6 at line 6 of DateTime/TimeZone/UTC.pm sub import {
7 | 3 | 2µs |  |  | my $class = shift;
8 |  |  |  |  |
9 | 3 | 2µs |  |  | my $inheritor = caller(0);
10 |  |  |  |  |
11 | 3 | 4µs |  |  | if ( @_ and $_[0] eq '-norequire' ) {
12 |  |  |  |  | shift @_;
13 |  |  |  |  | } else {
14 | 3 | 10µs |  |  | for ( my @filename = @_ ) {
15 | 5 | 64µs | 5 | 34µs | s{::|'}{/}g; # spent 34µs making 5 calls to parent::CORE:subst, avg 7µs/call
16 | 5 | 590µs |  |  | require "$_.pm"; # dies if the file is not found
17 |  |  |  |  | }
18 |  |  |  |  | }
19 |  |  |  |  |
20 |  |  |  |  | {
21 | 5 | 88µs | 2 | 37µs | # spent 23µs (9+14) within parent::BEGIN@21 which was called: # once (9µs+14µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 21 no strict 'refs'; # spent 23µs making 1 call to parent::BEGIN@21 # spent 14µs making 1 call to strict::unimport
22 | 3 | 38µs |  |  | push @{"$inheritor\::ISA"}, @_;
23 |  |  |  |  | };
24 |  |  |  |  | };
25 |  |  |  |  |
26 | 1 | 3µs |  |  | "All your base are belong to us"
27 |  |  |  |  |
28 |  |  |  |  | __END__
|  |  |  |  | # spent 34µs within parent::CORE:subst which was called 5 times, avg 7µs/call: # 5 times (34µs+0s) by parent::import at line 15, avg 7µs/call sub parent::CORE:subst; # opcode