← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Thu Dec 15 15:23:56 2022
Reported on Thu Dec 15 15:27:01 2022

Filename/Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/parent.pm
StatementsExecuted 48 statements in 718µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
553844µs986µsparent::::importparent::import
61122µs22µsparent::::CORE:substparent::CORE:subst (opcode)
11119µs22µsparent::::BEGIN@2parent::BEGIN@2
1116µs12µ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;
2290µs225µs
# spent 22µs (19+3) within parent::BEGIN@2 which was called: # once (19µs+3µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 2
use strict;
# spent 22µs making 1 call to parent::BEGIN@2 # spent 3µs making 1 call to strict::import
3
410sour $VERSION = '0.238';
5
6
# spent 986µs (844+142) within parent::import which was called 5 times, avg 197µs/call: # once (798µs+126µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 178 of Encode.pm # once (18µs+9µs) by List::MoreUtils::BEGIN@66 at line 66 of List/MoreUtils.pm # once (16µs+2µs) by Params::Util::BEGIN@61 at line 61 of Params/Util.pm # once (8µs+3µs) by Encode::XS::BEGIN@210 at line 210 of Encode.pm # once (4µs+2µs) by Encode::utf8::BEGIN@215 at line 215 of Encode.pm
sub import {
751µs my $class = shift;
8
952µs my $inheritor = caller(0);
10
1154µs if ( @_ and $_[0] eq '-norequire' ) {
12 shift @_;
13 } else {
1455µs for ( my @filename = @_ ) {
15634µs622µs s{::|'}{/}g;
# spent 22µs making 6 calls to parent::CORE:subst, avg 4µs/call
166477µs require "$_.pm"; # dies if the file is not found
17 }
18 }
19
20 {
21778µs218µs
# spent 12µs (6+6) within parent::BEGIN@21 which was called: # once (6µs+6µs) by Encode::UTF_EBCDIC::BEGIN@178 at line 21
no strict 'refs';
# spent 12µs making 1 call to parent::BEGIN@21 # spent 6µs making 1 call to strict::unimport
22525µs push @{"$inheritor\::ISA"}, @_; # dies if a loop is detected
23 };
24};
25
2612µs1;
27
28__END__
 
# spent 22µs within parent::CORE:subst which was called 6 times, avg 4µs/call: # 6 times (22µs+0s) by parent::import at line 15, avg 4µs/call
sub parent::CORE:subst; # opcode