NYTProf bench.pl

Performance Profile Index
For scripts/bench.pl
Run on Mon Oct 22 16:48:56 2018
Reported on Mon Oct 22 16:49:10 2018
Profile of scripts/bench.pl for 3.06s (of 5.55s), executing 3860674 statements and 1325749 subroutine calls in 17 source files and 3 string evals.

The Flame Graph above is a visualization of the time spent in distinct call stacks. The colors and x-axis position are not meaningful.

Top 15 Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
20000 | 1 | 1 | 1.54s | 2.12s | Game::Collisions::::get_collisions_for_aabb Game::Collisions::get_collisions_for_aabb
26436 | 3 | 1 | 566ms | 659ms | Game::Collisions::AABB::::_calculate_bounding_box_for_nodesGame::Collisions::AABB::_calculate_bounding_box_for_nodes
239960 | 1 | 1 | 354ms | 354ms | Game::Collisions::AABB::::does_collideGame::Collisions::AABB::does_collide
194280 | 1 | 1 | 105ms | 105ms | Game::Collisions::AABB::::is_branch_nodeGame::Collisions::AABB::is_branch_node
20 | 1 | 1 | 60.7ms | 2.18s | Game::Collisions::::get_collisions Game::Collisions::get_collisions
183200 | 1 | 1 | 59.4ms | 59.4ms | Game::Collisions::AABB::::right_nodeGame::Collisions::AABB::right_node
184198 | 2 | 1 | 58.7ms | 58.7ms | Game::Collisions::AABB::::left_nodeGame::Collisions::AABB::left_node
999 | 1 | 1 | 49.9ms | 315ms | Game::Collisions::AABB::::resize_all_parentsGame::Collisions::AABB::resize_all_parents
999 | 1 | 1 | 43.8ms | 469ms | Game::Collisions::AABB::::find_best_sibling_nodeGame::Collisions::AABB::find_best_sibling_node
9478 | 1 | 1 | 27.1ms | 260ms | Game::Collisions::AABB::::_resize_to_fit_childrenGame::Collisions::AABB::_resize_to_fit_children
107742 | 3 | 2 | 26.6ms | 26.6ms | Game::Collisions::AABB::::xGame::Collisions::AABB::x
107742 | 3 | 2 | 24.8ms | 24.8ms | Game::Collisions::AABB::::yGame::Collisions::AABB::y
1000 | 1 | 1 | 18.8ms | 829ms | Game::Collisions::::_add_aabb Game::Collisions::_add_aabb
52872 | 1 | 1 | 12.1ms | 12.1ms | Game::Collisions::AABB::::lengthGame::Collisions::AABB::length
52872 | 1 | 1 | 11.6ms | 11.6ms | Game::Collisions::AABB::::heightGame::Collisions::AABB::height

You can view a treemap of subroutine exclusive time, grouped by package.
NYTProf also generates call-graph files in Graphviz format: inter-package calls, all inter-subroutine calls.
You can hover over some table cells and headings to view extra information.
Some table column headings can be clicked on to sort the table by that column.

Source Code Files — ordered by exclusive time then name
Stmts | Exclusive Time | Reports | Source File
--- | --- | --- | ---
2748344 | 2.37s | line | /home/tmurray/proj/Game-Collisions/lib/Game/Collisions/AABB.pm
1111338 | 649ms | line | /home/tmurray/proj/Game-Collisions/lib/Game/Collisions.pm
24 | 20.5ms | line | /home/tmurray/proj/Game-Collisions/scripts/bench.pl
26 | 5.24ms | line | Time/HiRes.pm (including 1 string eval)
65 | 2.83ms | line | DynaLoader.pm
43 | 2.30ms | line | Exporter/Heavy.pm
363 | 1.85ms | line | constant.pm
38 | 1.58ms | line | Config.pm
20 | 1.45ms | line | vars.pm
128 | 1.18ms | line | strict.pm
16 | 986µs | line | List/Util.pm (including 1 string eval)
223 | 863µs | line | warnings.pm
16 | 429µs | line | Scalar/Util.pm (including 1 string eval)
16 | 211µs | line | Exporter.pm
13 | 37µs | line | warnings/register.pm
4 | 16µs | line | utf8.pm
0 | 0s | line | XSLoader.pm
3860677 | 3.05s | Total (-3 statements are unaccounted for)
227098 | 180ms | Average
| 1.58ms | Median
| 0.00125 | Deviation