๐ A massif (Valgrind) extension to analyze memory consumptions of only specific functions.
massif-cherrypick takes an massif.out file, and
forges a new one containing only stats from functions that match the specified pattern.
The new massif.out file can then be used with ms_print
, massif-visualizer
or any other similar post-analysis tools.
- g++ 4.8+
- ... and nothing else
make
./massif-cherrypick {massif.out file} {pattern} [--merge-stacks] [--clear-heap-extra]
{pattern}
supports Regular Expression (ECMAScript regular expressions pattern syntax).
Find out the memory consumption of
libdispatch
duringfind
# generates massif.out.15324
valgrind --tool=massif --stacks=yes --detailed-freq=1 find .
# generates massif.out.15324.cherry
./massif-cherrypick massif.out.15324 libdispatch