← Index
NYTProf Performance Profile   « line view »
For /Users/brian/bin/perls/cpan5.26.1
  Run on Sat Dec 30 01:41:10 2017
Reported on Sat Dec 30 01:44:15 2017

Filename/usr/local/perls/perl-5.26.1/lib/5.26.1/parent.pm
StatementsExecuted 42 statements in 3.23ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4448.75ms18.6msparent::::importparent::import (recurses: max depth 1, inclusive time 2.60ms)
111419µs578µsparent::::BEGIN@3parent::BEGIN@3
11144µs50µsparent::::BEGIN@2parent::BEGIN@2
51144µs44µsparent::::CORE:substparent::CORE:subst (opcode)
11119µs39µsparent::::BEGIN@21parent::BEGIN@21
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package parent;
22462µs256µs
# spent 50µs (44+6) within parent::BEGIN@2 which was called: # once (44µs+6µs) by URI::URL::BEGIN@6 at line 2
use strict;
# spent 50µs making 1 call to parent::BEGIN@2 # spent 6µs making 1 call to strict::import
32307µs2737µs
# spent 578µs (419+159) within parent::BEGIN@3 which was called: # once (419µs+159µs) by URI::URL::BEGIN@6 at line 3
use vars qw($VERSION);
# spent 578µs making 1 call to parent::BEGIN@3 # spent 159µs making 1 call to vars::import
411µs$VERSION = '0.236';
5
6
# spent 18.6ms (8.75+9.88) within parent::import which was called 4 times, avg 4.66ms/call: # once (1.40ms+9.40ms) by URI::URL::BEGIN@6 at line 6 of URI/URL.pm # once (3.46ms+2.83ms) by URI::file::BEGIN@6 at line 6 of URI/file.pm # once (1.44ms+92µs) by URI::file::Unix::BEGIN@6 at line 6 of URI/file/Unix.pm # once (2.45ms+-2.45ms) by URI::_generic::BEGIN@6 at line 6 of URI/_generic.pm
sub import {
744µs my $class = shift;
8
946µs my $inheritor = caller(0);
10
1146µs if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
14426µs for ( my @filename = @_ ) {
15574µs544µs s{::|'}{/}g;
# spent 44µs making 5 calls to parent::CORE:subst, avg 9µs/call
1652.10ms require "$_.pm"; # dies if the file is not found
17 }
18 }
19
20 {
216171µs259µs
# spent 39µs (19+20) within parent::BEGIN@21 which was called: # once (19µs+20µs) by URI::URL::BEGIN@6 at line 21
no strict 'refs';
# spent 39µs making 1 call to parent::BEGIN@21 # spent 20µs making 1 call to strict::unimport
22471µs push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected
23 };
24};
25
2615µs1;
27
28__END__
 
# spent 44µs within parent::CORE:subst which was called 5 times, avg 9µs/call: # 5 times (44µs+0s) by parent::import at line 15, avg 9µs/call
sub parent::CORE:subst; # opcode