← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mongo_pain.pl
  Run on Fri Mar 25 17:00:29 2011
Reported on Fri Mar 25 17:07:08 2011

Filename/usr/share/perl/5.10/parent.pm
StatementsExecuted 38 statements in 484µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
333767µs1.35msparent::::importparent::import (recurses: max depth 1, inclusive time 64µs)
31118µs18µsparent::::CORE:substparent::CORE:subst (opcode)
11116µs20µsparent::::BEGIN@2parent::BEGIN@2
11110µs27µsparent::::BEGIN@25parent::BEGIN@25
1119µs34µ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;
2334µs223µs
# spent 20µs (16+3) within parent::BEGIN@2 which was called: # once (16µs+3µs) by DateTime::TimeZone::Floating::BEGIN@10 at line 2
use strict;
# spent 20µs making 1 call to parent::BEGIN@2 # spent 4µs making 1 call to strict::import
33169µs259µs
# spent 34µs (9+25) within parent::BEGIN@3 which was called: # once (9µs+25µs) by DateTime::TimeZone::Floating::BEGIN@10 at line 3
use vars qw($VERSION);
# spent 34µs making 1 call to parent::BEGIN@3 # spent 25µs making 1 call to vars::import
41700ns$VERSION = '0.221';
5
6
# spent 1.35ms (767µs+587µs) within parent::import which was called 3 times, avg 451µs/call: # once (712µs+642µs) by DateTime::TimeZone::Floating::BEGIN@10 at line 10 of DateTime/TimeZone/Floating.pm # once (25µs+-25µs) by DateTime::TimeZone::UTC::BEGIN@10 at line 10 of DateTime/TimeZone/UTC.pm # once (30µs+-30µs) by DateTime::TimeZone::OffsetOnly::BEGIN@10 at line 10 of DateTime/TimeZone/OffsetOnly.pm
sub import {
71225µs my $class = shift;
8
9 my $inheritor = caller(0);
10
1137µs if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14 for ( my @filename = @_ ) {
159124µs if ( $_ eq $inheritor ) {
16 warn "Class '$inheritor' tried to inherit from itself\n";
17 };
18
19318µs s{::|'}{/}g;
# spent 18µs making 3 calls to parent::CORE:subst, avg 6µs/call
20 require "$_.pm"; # dies if the file is not found
21 }
22 }
23
24 {
25378µs244µs
# spent 27µs (10+17) within parent::BEGIN@25 which was called: # once (10µs+17µs) by DateTime::TimeZone::Floating::BEGIN@10 at line 25
no strict 'refs';
# spent 27µs making 1 call to parent::BEGIN@25 # spent 17µs making 1 call to strict::unimport
26 # This is more efficient than push for the new MRO
27 # at least until the new MRO is fixed
28343µs @{"$inheritor\::ISA"} = (@{"$inheritor\::ISA"} , @_);
29 };
30};
31
3213µs"All your base are belong to us"
33
34__END__
 
# spent 18µs within parent::CORE:subst which was called 3 times, avg 6µs/call: # 3 times (18µs+0s) by parent::import at line 19, avg 6µs/call
sub parent::CORE:subst; # opcode