Filename | /Users/ap13/perl5/lib/perl5/Graph/MSTHeapElem.pm |
Statements | Executed 26846 statements in 58.6ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
5007 | 1 | 1 | 17.0ms | 17.0ms | new | Graph::MSTHeapElem::
11815 | 3 | 1 | 16.8ms | 16.8ms | cmp | Graph::MSTHeapElem::
5007 | 1 | 1 | 9.05ms | 9.05ms | val | Graph::MSTHeapElem::
1 | 1 | 1 | 418µs | 603µs | BEGIN@5 | Graph::MSTHeapElem::
1 | 1 | 1 | 24µs | 54µs | BEGIN@3 | Graph::MSTHeapElem::
1 | 1 | 1 | 15µs | 123µs | BEGIN@7 | Graph::MSTHeapElem::
1 | 1 | 1 | 15µs | 85µs | BEGIN@4 | Graph::MSTHeapElem::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Graph::MSTHeapElem; | ||||
2 | |||||
3 | 2 | 50µs | 2 | 84µs | # spent 54µs (24+30) within Graph::MSTHeapElem::BEGIN@3 which was called:
# once (24µs+30µs) by Graph::BEGIN@34 at line 3 # spent 54µs making 1 call to Graph::MSTHeapElem::BEGIN@3
# spent 30µs making 1 call to strict::import |
4 | 2 | 50µs | 2 | 155µs | # spent 85µs (15+70) within Graph::MSTHeapElem::BEGIN@4 which was called:
# once (15µs+70µs) by Graph::BEGIN@34 at line 4 # spent 85µs making 1 call to Graph::MSTHeapElem::BEGIN@4
# spent 70µs making 1 call to vars::import |
5 | 2 | 180µs | 2 | 641µs | # spent 603µs (418+184) within Graph::MSTHeapElem::BEGIN@5 which was called:
# once (418µs+184µs) by Graph::BEGIN@34 at line 5 # spent 603µs making 1 call to Graph::MSTHeapElem::BEGIN@5
# spent 38µs making 1 call to Exporter::import |
6 | |||||
7 | 2 | 166µs | 2 | 231µs | # spent 123µs (15+108) within Graph::MSTHeapElem::BEGIN@7 which was called:
# once (15µs+108µs) by Graph::BEGIN@34 at line 7 # spent 123µs making 1 call to Graph::MSTHeapElem::BEGIN@7
# spent 108µs making 1 call to base::import |
8 | |||||
9 | 1 | 600ns | $VERSION = 0.01; | ||
10 | |||||
11 | # spent 17.0ms within Graph::MSTHeapElem::new which was called 5007 times, avg 3µs/call:
# 5007 times (17.0ms+0s) by Graph::_MST_add at line 2317 of Graph.pm, avg 3µs/call | ||||
12 | 10014 | 20.1ms | my $class = shift; | ||
13 | bless { u => $_[0], v => $_[1], w => $_[2] }, $class; | ||||
14 | } | ||||
15 | |||||
16 | # spent 16.8ms within Graph::MSTHeapElem::cmp which was called 11815 times, avg 1µs/call:
# 7211 times (10.0ms+0s) by Heap071::Fibonacci::consolidate at line 409 of Heap071/Fibonacci.pm, avg 1µs/call
# 4438 times (6.53ms+0s) by Heap071::Fibonacci::add at line 174 of Heap071/Fibonacci.pm, avg 1µs/call
# 166 times (257µs+0s) by Heap071::Fibonacci::consolidate at line 390 of Heap071/Fibonacci.pm, avg 2µs/call | ||||
17 | 11815 | 26.1ms | ($_[0]->{ w } || 0) <=> ($_[1]->{ w } || 0); | ||
18 | } | ||||
19 | |||||
20 | # spent 9.05ms within Graph::MSTHeapElem::val which was called 5007 times, avg 2µs/call:
# 5007 times (9.05ms+0s) by Graph::_heap_walk at line 2375 of Graph.pm, avg 2µs/call | ||||
21 | 5007 | 12.0ms | @{ $_[0] }{ qw(u v w) }; | ||
22 | } | ||||
23 | |||||
24 | 1 | 5µs | 1; |