Skip to content

๐Ÿ’ A massif (Valgrind) extension to analyze partial memory consumptions

License

Notifications You must be signed in to change notification settings

lnishan/massif-cherrypick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

massif-cherrypick

๐Ÿ’ 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.

Dependencies

  • g++ 4.8+
  • ... and nothing else

Building

make

Usage

./massif-cherrypick {massif.out file} {pattern} [--merge-stacks] [--clear-heap-extra]

{pattern} supports Regular Expression (ECMAScript regular expressions pattern syntax).

Sample Usage

Find out the memory consumption of libdispatch during find

Profile the program with the massif tool from Valgrind

# generates massif.out.15324
valgrind --tool=massif --stacks=yes --detailed-freq=1 find .

Launch massif-cherrypick to forge a new massif.out file

# generates massif.out.15324.cherry
./massif-cherrypick massif.out.15324 libdispatch

(Original) massif.out.15324 on massif-visualizer

massif.out.15324 on massif-visualizer

(New) massif.out.15324.cherry on massif-visualizer

massif.out.15324.cherry on massif-visualizer

About

๐Ÿ’ A massif (Valgrind) extension to analyze partial memory consumptions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published