← Index
NYTProf Performance Profile   « block view • line view • sub view »
For ./testnewboardincnply
  Run on Mon Jan 12 21:52:27 2015
Reported on Mon Jan 12 22:01:18 2015

Filename/usr/share/perl/5.14/parent.pm
StatementsExecuted 17 statements in 239µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.22ms3.03msparent::::importparent::import
1119µs11µsparent::::BEGIN@2parent::BEGIN@2
1115µs12µsparent::::BEGIN@25parent::BEGIN@25
1114µs18µsparent::::BEGIN@3parent::BEGIN@3
1111µs1µsparent::::CORE:substparent::CORE:subst (opcode)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package parent;
2219µs213µs
# spent 11µs (9+2) within parent::BEGIN@2 which was called: # once (9µs+2µs) by NewBoard::BEGIN@21 at line 2
use strict;
# spent 11µs making 1 call to parent::BEGIN@2 # spent 2µs making 1 call to strict::import
32104µs231µs
# spent 18µs (4+13) within parent::BEGIN@3 which was called: # once (4µs+13µs) by NewBoard::BEGIN@21 at line 3
use vars qw($VERSION);
# spent 18µs making 1 call to parent::BEGIN@3 # spent 13µs making 1 call to vars::import
41400ns$VERSION = '0.225';
5
6
# spent 3.03ms (2.22+807µs) within parent::import which was called: # once (2.22ms+807µs) by NewBoard::BEGIN@21 at line 21 of NewBoard.pm
sub import {
744µs my $class = shift;
8
9 my $inheritor = caller(0);
10
1111µs if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14 for ( my @filename = @_ ) {
15357µs if ( $_ eq $inheritor ) {
16 warn "Class '$inheritor' tried to inherit from itself\n";
17 };
18
1911µs s{::|'}{/}g;
# spent 1µs making 1 call to parent::CORE:subst
20 require "$_.pm"; # dies if the file is not found
21 }
22 }
23
24 {
25245µs220µs
# spent 12µs (5+7) within parent::BEGIN@25 which was called: # once (5µs+7µs) by NewBoard::BEGIN@21 at line 25
no strict 'refs';
# spent 12µs making 1 call to parent::BEGIN@25 # spent 7µs making 1 call to strict::unimport
2615µs push @{"$inheritor\::ISA"}, @_;
27 };
28};
29
3012µs"All your base are belong to us"
31
32__END__
 
# spent 1µs within parent::CORE:subst which was called: # once (1µs+0s) by parent::import at line 19
sub parent::CORE:subst; # opcode