Introduce cost threshold for flamegraph to minimize memory overhead.
authorMilian Wolff <mail@milianw.de>
Tue, 5 Apr 2016 20:30:23 +0000 (22:30 +0200)
committerMilian Wolff <mail@milianw.de>
Tue, 5 Apr 2016 20:32:43 +0000 (22:32 +0200)
commit04fc1fb98c0b74238c09a04a1117bbf8bd007b9d
tree47008a1bb31d22ab0d8d9fb529915133bde34eed
parente76bf7faeee6ea6d318c0de00fbf4a75dd6acc6d
Introduce cost threshold for flamegraph to minimize memory overhead.

For larger data files, the flamegraph can easily consume hundreds
of megabytes of ram and take multiple seconds to be build up. This
is mostly due to the dozens of small leaf items, all of which only
have tiny cost and will not be shown most of the time.

The new default cut-off of 0.1% drastically reduces the memory
overhead and the flamegraph will be build nearly instantly even for
larger data sets.

In the future, one could even refine the data on-demand.
gui/flamegraph.cpp
gui/flamegraph.h