I'm using Valgrind 3.3.1 with the Massif tool to profile the heap of a C++ application, and I'm wondering if there is a graphical tool to examine the textual outputfile file.
Thanks for any suggestion.
Overview. Massif is a heap profiler. It measures how much heap memory your program uses. This includes both the useful space, and the extra bytes allocated for book-keeping and alignment purposes. It can also measure the size of your program's stack(s), although it does not do so by default.
You run your application in Valgrind with --tool=massif and then open the generated massif. out. %pid in the visualizer. Gzip or Bzip2 compressed massif files can also be opened transparently.
Valgrind Memcheck is a tool that detects memory leaks and memory errors. Some of the most difficult C bugs come from mismanagement of memory: allocating the wrong size, using an uninitialized pointer, accessing memory after it was freed, overrunning a buffer, and so on.
Valgrind works by doing a just-in-time (JIT) translation of the input program into an equivalent version that has additional checking. For the memcheck tool, this means it literally looks at the x86 code in the executable, and detects what instructions represent memory accesses.
For anyone else who is still interested in graphical output of Massif from Valgrind please consider massif-visualizer, it is beautiful.
You can find the project page at KDE-Apps.
For Ubuntu you should build massif-visualizer from source or install package from Kubuntu-ppa repo:
add-apt-repository ppa:kubuntu-ppa/backports apt-get update && apt-get install massif-visualizer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With