86

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.

Saurav Sahu
  • 13,038
  • 6
  • 64
  • 79
puccio
  • 3,054
  • 8
  • 29
  • 20

3 Answers3

116

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
Gourneau
  • 12,660
  • 8
  • 42
  • 42
  • Links to the git repo seem to be out of date. – Catskul Jun 03 '11 at 01:05
  • 2
    @Catskul - Looks like it has a 'proper' page on KDE-Apps with current links, edited to point there instead. – Tim Post Sep 07 '11 at 04:32
  • 3
    Its really hard to build it if you are running Centos... like, really, hard. Even installing KDE is not enough and some libraries need to be pulled as sources from ubuntu repos. Though the app is worth all the trouble – Zeks Sep 17 '14 at 12:57
  • I'm going to sound like a dinosaur here, but Slackware 14.1, clone + follow the instructions in the INSTALL and it worked. – Richard Corden Oct 17 '14 at 15:01
  • if you have some thing like `E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)` please use **sudo** before each command. For the second one, add sudo at the beginning and **also** after the &&. – Gab是好人 May 03 '16 at 09:11
  • @Zeks: [I don't suppose you remember _what_ libraries?](https://stackoverflow.com/q/49340691/560648) – Lightness Races in Orbit Mar 17 '18 at 19:37
  • I can try to see tomorrow if bash history still remembers on that machine. This VM isn't used often so it might just be the case – Zeks Mar 18 '18 at 20:22
  • 10
    In ubuntu 18.04 `massif-visualizer` is aviable from main repos. – val - disappointed in SE Jul 12 '18 at 16:58
  • Good tool, but it doesn't show the stack usage plot. – ilya1725 Jun 18 '19 at 19:57
11

I just made my own in-browser massif visualizer, since the available visualizers and viewers didn't compile on the platform I use.

So take a look to it, it's online.

Wael Boutglay
  • 1,163
  • 1
  • 15
  • 21
7

There is a Qt application called massiftool that does a fair job of displaying this data. Go to http://sourceforge.net/projects/massiftool/ to see the project page.

Raoul
  • 71
  • 2