Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Linux Tools Project/Valgrind/User Guide"

(Overview)
(Using Memcheck)
Line 10: Line 10:
  
 
== Using Memcheck ==
 
== Using Memcheck ==
* Link to valgrind.org doc
+
* Memcheck discovers memory management problems in your program. (http://www.valgrind.org/docs/manual/mc-manual.html)
* Launch Shortcut
+
* It is the default tool.
 +
* The launch shortcut can create a configuration with default options for your program.
 +
** Same as running <code>valgrind ./myprog</code> from the command line.
 +
** After a configuration has already been created, the launch shortcut will launch your most recently used configuration.
 
* Interpreting Output
 
* Interpreting Output
 
** Interactivity
 
** Interactivity
 
** Config Options
 
** Config Options
 +
 
== Using Massif ==
 
== Using Massif ==
 
* Link to valgrind.org doc
 
* Link to valgrind.org doc

Revision as of 11:13, 13 May 2009

Overview

  • Valgrind is a powerful and widely used memory profiling tool suite. (http://www.valgrind.org)
  • This project aims to provide a useful integration of Valgrind tools with your Eclipse projects.
  • Currently Memcheck, Massif and Cachegrind are supported.
  • Valgrind 3.3.0 or greater is required.

Installing

Using Memcheck

  • Memcheck discovers memory management problems in your program. (http://www.valgrind.org/docs/manual/mc-manual.html)
  • It is the default tool.
  • The launch shortcut can create a configuration with default options for your program.
    • Same as running valgrind ./myprog from the command line.
    • After a configuration has already been created, the launch shortcut will launch your most recently used configuration.
  • Interpreting Output
    • Interactivity
    • Config Options

Using Massif

  • Link to valgrind.org doc
  • Switching tool
  • Interpreting Output
    • Table viewer
      • Interactivity
    • Tree viewer
      • Interactivity
    • Chart
      • Interactivity
  • Config Options

Using Cachegrind

  • Link to valgrind.org doc
  • Switching tool
  • Interpreting Output
    • Interactivity

Special Cases

  • Handling program errors
  • Handling Valgrind config errors

Back to the top