← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 09:58:41 2014
Reported on Tue Jun 24 09:59:16 2014

Filename/usr/share/perl/5.14/parent.pm
StatementsExecuted 54 statements in 1.05ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4441.91ms2.94msparent::::importparent::import (recurses: max depth 1, inclusive time 116µs)
61160µs60µsparent::::CORE:substparent::CORE:subst (opcode)
11131µs37µsparent::::BEGIN@2parent::BEGIN@2
11118µs43µsparent::::BEGIN@25parent::BEGIN@25
11113µs55µsparent::::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
1package parent;
2254µs243µs
# spent 37µs (31+6) within parent::BEGIN@2 which was called: # once (31µs+6µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 2
use strict;
# spent 37µs making 1 call to parent::BEGIN@2 # spent 6µs making 1 call to strict::import
32273µs296µs
# spent 55µs (13+42) within parent::BEGIN@3 which was called: # once (13µs+42µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 3
use vars qw($VERSION);
# spent 55µs making 1 call to parent::BEGIN@3 # spent 42µs making 1 call to vars::import
411µs$VERSION = '0.225';
5
6
# spent 2.94ms (1.91+1.03) within parent::import which was called 4 times, avg 735µs/call: # once (1.78ms+1.11ms) by DateTime::TimeZone::Floating::BEGIN@12 at line 12 of DateTime/TimeZone/Floating.pm # once (40µs+11µs) by DateTime::TimeZone::Local::Unix::BEGIN@13 at line 13 of DateTime/TimeZone/Local/Unix.pm # once (45µs+-45µs) by DateTime::TimeZone::UTC::BEGIN@12 at line 12 of DateTime/TimeZone/UTC.pm # once (51µs+-51µs) by DateTime::TimeZone::OffsetOnly::BEGIN@12 at line 12 of DateTime/TimeZone/OffsetOnly.pm
sub import {
71650µs my $class = shift;
8
9 my $inheritor = caller(0);
10
11418µs if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14 for ( my @filename = @_ ) {
1518449µs if ( $_ eq $inheritor ) {
16 warn "Class '$inheritor' tried to inherit from itself\n";
17 };
18
19660µs s{::|'}{/}g;
# spent 60µs making 6 calls to parent::CORE:subst, avg 10µs/call
20 require "$_.pm"; # dies if the file is not found
21 }
22 }
23
24 {
252112µs268µs
# spent 43µs (18+25) within parent::BEGIN@25 which was called: # once (18µs+25µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 25
no strict 'refs';
# spent 43µs making 1 call to parent::BEGIN@25 # spent 25µs making 1 call to strict::unimport
26884µs push @{"$inheritor\::ISA"}, @_;
27 };
28};
29
3016µs"All your base are belong to us"
31
32__END__
 
# spent 60µs within parent::CORE:subst which was called 6 times, avg 10µs/call: # 6 times (60µs+0s) by parent::import at line 19, avg 10µs/call
sub parent::CORE:subst; # opcode