← Index
NYTProf Performance Profile   « block view • line view • sub view »
For mentat.storage.mongo.pl
  Run on Tue Jun 24 10:04:38 2014
Reported on Tue Jun 24 10:05:06 2014

Filename/usr/share/perl/5.14/parent.pm
StatementsExecuted 54 statements in 477µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
444848µs1.31msparent::::importparent::import (recurses: max depth 1, inclusive time 53µs)
61126µs26µsparent::::CORE:substparent::CORE:subst (opcode)
11114µs17µsparent::::BEGIN@2parent::BEGIN@2
1118µs19µsparent::::BEGIN@25parent::BEGIN@25
1116µs24µ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;
2223µs219µs
# spent 17µs (14+3) within parent::BEGIN@2 which was called: # once (14µs+3µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 2
use strict;
# spent 17µs making 1 call to parent::BEGIN@2 # spent 3µs making 1 call to strict::import
32117µs241µs
# spent 24µs (6+18) within parent::BEGIN@3 which was called: # once (6µs+18µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 3
use vars qw($VERSION);
# spent 24µs making 1 call to parent::BEGIN@3 # spent 18µs making 1 call to vars::import
41500ns$VERSION = '0.225';
5
6
# spent 1.31ms (848µs+465µs) within parent::import which was called 4 times, avg 328µs/call: # once (786µs+504µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 12 of DateTime/TimeZone/Floating.pm # once (17µs+5µs) by DateTime::TimeZone::Local::Unix::BEGIN@13 at line 13 of DateTime/TimeZone/Local/Unix.pm # once (20µs+-20µs) by DateTime::TimeZone::UTC::BEGIN@12 at line 12 of DateTime/TimeZone/UTC.pm # once (25µs+-25µs) by DateTime::TimeZone::OffsetOnly::BEGIN@12 at line 12 of DateTime/TimeZone/OffsetOnly.pm
sub import {
746285µs my $class = shift;
8
9 my $inheritor = caller(0);
10
11 if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14 for ( my @filename = @_ ) {
15 if ( $_ eq $inheritor ) {
16 warn "Class '$inheritor' tried to inherit from itself\n";
17 };
18
19626µs s{::|'}{/}g;
# spent 26µs making 6 calls to parent::CORE:subst, avg 4µs/call
20 require "$_.pm"; # dies if the file is not found
21 }
22 }
23
24 {
25249µs230µs
# spent 19µs (8+11) within parent::BEGIN@25 which was called: # once (8µs+11µs) by DateTime::TimeZone::Floating::BEGIN@12 at line 25
no strict 'refs';
# spent 19µs making 1 call to parent::BEGIN@25 # spent 11µs making 1 call to strict::unimport
26 push @{"$inheritor\::ISA"}, @_;
27 };
28};
29
3012µs"All your base are belong to us"
31
32__END__
 
# spent 26µs within parent::CORE:subst which was called 6 times, avg 4µs/call: # 6 times (26µs+0s) by parent::import at line 19, avg 4µs/call
sub parent::CORE:subst; # opcode