← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:45:40 2015

Filename/Users/ap13/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/if.pm
StatementsExecuted 24 statements in 72µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21140µs49µsif::::workif::work
2217µs7µsif::::importif::import
2116µs6µsif::::CORE:substif::CORE:subst (opcode)
0000s0sif::::unimportif::unimport
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package if;
2
31600ns$VERSION = '0.0602';
4
5
# spent 49µs (40+9) within if::work which was called 2 times, avg 24µs/call: # 2 times (40µs+9µs) by Moose::Object::BEGIN@15 or Moose::Object::BEGIN@16 at line 18, avg 24µs/call
sub work {
61654µs my $method = shift() ? 'import' : 'unimport';
7 die "Too few arguments to 'use if' (some code returning an empty list in list context?)"
8 unless @_ >= 2;
9 return unless shift; # CONDITION
10
11 my $p = $_[0]; # PACKAGE
1226µs (my $file = "$p.pm") =~ s!::!/!g;
# spent 6µs making 2 calls to if::CORE:subst, avg 3µs/call
13 require $file; # Works even if $_[0] is a keyword (like open)
1423µs my $m = $p->can($method);
# spent 3µs making 2 calls to UNIVERSAL::can, avg 2µs/call
1513.00ms goto &$m if $m;
# spent 3.00ms making 1 call to metaclass::import
16}
17
18614µs249µs
# spent 7µs within if::import which was called 2 times, avg 3µs/call: # once (4µs+0s) by Moose::Object::BEGIN@15 at line 15 of Moose/Object.pm # once (3µs+0s) by Moose::Object::BEGIN@16 at line 16 of Moose/Object.pm
sub import { shift; unshift @_, 1; goto &work }
# spent 49µs making 2 calls to if::work, avg 24µs/call
19sub unimport { shift; unshift @_, 0; goto &work }
20
2113µs1;
22__END__
 
# spent 6µs within if::CORE:subst which was called 2 times, avg 3µs/call: # 2 times (6µs+0s) by if::work at line 12, avg 3µs/call
sub if::CORE:subst; # opcode