Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valgrind Massif tool output graphical interface?

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.

like image 551
puccio Avatar asked Oct 26 '09 09:10

puccio


People also ask

What is Massif in Valgrind?

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.

How do I open a massif file?

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.

How does valgrind detect memory leaks?

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.

How does valgrind work internally?

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.


1 Answers

For anyone else who is still interested in graphical output of Massif from Valgrind please consider massif-visualizer, it is beautiful.

alt text

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 
like image 148
Gourneau Avatar answered Oct 13 '22 06:10

Gourneau