brendangregg/FlameGraph — pull request #17 by timbunce (2013-03-30 19:01:06+00:00)
Title: Calculate depthmax after pruning nodes based on minwidth.

This avoids empty whitespace (sometimes lots) above the flames that's
caused by deep stacks that are too narrow to be seen.

Requires scanning the nodes twice, but that's offset by optimizations,
especially deleting the nodes that aren't going to be shown.