Profile of parent.pm

← Index
NYTProf Performance Profile «line view»
For -e
Run on Thu Jun 30 16:34:56 2016
Reported on Thu Jun 30 16:35:09 2016

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

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
3 | 3 | 3 | 1.15ms | 1.66ms | parent::::importparent::import (recurses: max depth 1, inclusive time 48µs)
5 | 1 | 1 | 23µs | 23µs | parent::::CORE:substparent::CORE:subst (opcode)
1 | 1 | 1 | 14µs | 16µs | parent::::BEGIN@2parent::BEGIN@2
1 | 1 | 1 | 7µs | 18µs | parent::::BEGIN@21parent::BEGIN@21
1 | 1 | 1 | 6µs | 25µ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 | 24µs | 2 | 18µs | # spent 16µs (14+2) within parent::BEGIN@2 which was called: # once (14µs+2µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 2 use strict; # spent 16µs making 1 call to parent::BEGIN@2 # spent 2µs making 1 call to strict::import
3 | 2 | 104µs | 2 | 44µs | # spent 25µs (6+19) within parent::BEGIN@3 which was called: # once (6µs+19µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 3 use vars qw($VERSION); # spent 25µs making 1 call to parent::BEGIN@3 # spent 19µs making 1 call to vars::import
4 | 1 | 400ns |  |  | $VERSION = '0.234';
5 |  |  |  |  |
6 |  |  |  |  | # spent 1.66ms (1.15+505µs) within parent::import which was called 3 times, avg 552µs/call: # once (1.11ms+543µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 6 of DateTime/TimeZone/Floating.pm # once (19µs+-19µs) by DateTime::TimeZone::UTC::BEGIN@6 at line 6 of DateTime/TimeZone/UTC.pm # once (19µs+-19µs) by DateTime::TimeZone::OffsetOnly::BEGIN@6 at line 6 of DateTime/TimeZone/OffsetOnly.pm sub import {
7 | 3 | 1µs |  |  | my $class = shift;
8 |  |  |  |  |
9 | 3 | 2µs |  |  | my $inheritor = caller(0);
10 |  |  |  |  |
11 | 3 | 3µs |  |  | if ( @_ and $_[0] eq '-norequire' ) {
12 |  |  |  |  | shift @_;
13 |  |  |  |  | } else {
14 | 3 | 6µs |  |  | for ( my @filename = @_ ) {
15 | 5 | 37µs | 5 | 23µs | s{::|'}{/}g; # spent 23µs making 5 calls to parent::CORE:subst, avg 5µs/call
16 | 5 | 537µs |  |  | require "$_.pm"; # dies if the file is not found
17 |  |  |  |  | }
18 |  |  |  |  | }
19 |  |  |  |  |
20 |  |  |  |  | {
21 | 5 | 65µs | 2 | 29µs | # spent 18µs (7+11) within parent::BEGIN@21 which was called: # once (7µs+11µs) by DateTime::TimeZone::Floating::BEGIN@6 at line 21 no strict 'refs'; # spent 18µs making 1 call to parent::BEGIN@21 # spent 11µs making 1 call to strict::unimport
22 | 3 | 26µs |  |  | push @{"$inheritor\::ISA"}, @_;
23 |  |  |  |  | };
24 |  |  |  |  | };
25 |  |  |  |  |
26 | 1 | 3µs |  |  | "All your base are belong to us"
27 |  |  |  |  |
28 |  |  |  |  | __END__
|  |  |  |  | # spent 23µs within parent::CORE:subst which was called 5 times, avg 5µs/call: # 5 times (23µs+0s) by parent::import at line 15, avg 5µs/call sub parent::CORE:subst; # opcode