← 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:51 2015

Filename/Users/ap13/perl5/lib/perl5/Heap071/Elem.pm
StatementsExecuted 20038 statements in 21.2ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
100142114.6ms14.6msHeap071::Elem::::heapHeap071::Elem::heap
11120µs41µsHeap071::Elem::::BEGIN@3Heap071::Elem::BEGIN@3
11113µs105µsHeap071::Elem::::BEGIN@4Heap071::Elem::BEGIN@4
0000s0sHeap071::Elem::::cmpHeap071::Elem::cmp
0000s0sHeap071::Elem::::newHeap071::Elem::new
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Heap071::Elem;
2
3249µs262µs
# spent 41µs (20+21) within Heap071::Elem::BEGIN@3 which was called: # once (20µs+21µs) by Graph::MSTHeapElem::BEGIN@5 at line 3
use strict;
# spent 41µs making 1 call to Heap071::Elem::BEGIN@3 # spent 21µs making 1 call to strict::import
42216µs2196µs
# spent 105µs (13+92) within Heap071::Elem::BEGIN@4 which was called: # once (13µs+92µs) by Graph::MSTHeapElem::BEGIN@5 at line 4
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
# spent 105µs making 1 call to Heap071::Elem::BEGIN@4 # spent 92µs making 1 call to vars::import
5
61900nsrequire Exporter;
71400nsrequire AutoLoader;
8
9120µs@ISA = qw(Exporter AutoLoader);
10
11# No names exported.
12# No names available for export.
13
141600ns@EXPORT = ( );
15
161800ns$VERSION = '0.71';
17
18
19# Preloaded methods go here.
20
21# new will usually be superceded by child,
22# but provide an empty hash as default and
23# accept any provided filling for it.
24sub new {
25 my $self = shift;
26 my $class = ref($self) || $self;
27
28 return bless { heap=>undef, @_ }, $class;
29}
30
31
# spent 14.6ms within Heap071::Elem::heap which was called 10014 times, avg 1µs/call: # 5007 times (7.69ms+0s) by Heap071::Fibonacci::elem at line 323 of Heap071/Fibonacci.pm, avg 2µs/call # 5007 times (6.87ms+0s) by Heap071::Fibonacci::extract_top at line 225 of Heap071/Fibonacci.pm, avg 1µs/call
sub heap {
322002820.9ms my $self = shift;
33 @_ ? ($self->{heap} = shift) : $self->{heap};
34}
35
36sub cmp {
37 die "This cmp method must be superceded by one that knows how to compare elements."
38}
39
40# Autoload methods go after =cut, and are processed by the autosplit program.
41
42111µs1;
43__END__