I'm timing tight loops and wanted individual timings as well as Hz (which only makes sense for the entire loop, not parts of it). This patch reworks the format string in ProfileNode::print to show the frequency instead of percentage for top-level nodes (detected by checking if it was going to print "inf%") and the average time-per-iteration for all nodes.
I'm timing tight loops and wanted individual timings as well as Hz (which only makes sense for the entire loop, not parts of it). This patch reworks the format string in
ProfileNode::print
to show the frequency instead of percentage for top-level nodes (detected by checking if it was going to print "inf%") and the average time-per-iteration for all nodes.Sample output: