Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Switching to Valgrind's Massif tool, we can profile the memory use of the application over time for heap (default) and stack (if selected in the options).  Also note that clicking on one of the data points in the massif plot will highlight that snapshot in the Valgrind table tab.  Once highlighted, open the entry and you'll find the %mem used broken out by line number in your src listing.

The cachegrind tool can simulate how your application interacts with cache .  A profile run with cachegrind will generate data for all of your application and the system calls required to support it.  You'll typically find your application code's profile data toward the end of the list.  Hover over the Location labels for detail on their meaning.  Selecting a file->routine->line# in the Valgrind Cachegrind table will take you to that line in your source code.

Valgrind's Helgrind utility for use with pthreads is also integrated into Eclipse.  Not being a big pthread programmingprogrammer, I don't have much to say about it but it's interesting to take a look at an OpenMP code (like our test program) and see what Helgrind reports.

...