bos/statprof.py — pull request #14 by Vickor (2012-11-01 20:28:32+00:00)
Title: Add a format option to group results by function.

The default behavior is not changed.

This options allows output rows to be by filename:function instead of filename:lineno:function. If particular lines within a function take more than 1% of the total time, they are output as nested rows
beneath the function row and include a snippet of the source. I found this to be less noisy than having a row for every line that got sampled.

See the commit message for example output.