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.
Difference between revisions of "Linux Tools Project/Valgrind/User Guide"
(→Using Memcheck) |
(→Using Memcheck) |
||
Line 18: | Line 18: | ||
** Each error has a stack trace. | ** Each error has a stack trace. | ||
*** If the source can be resolved, double-clicking on the stack frame will open an editor to its line. | *** If the source can be resolved, double-clicking on the stack frame will open an editor to its line. | ||
− | + | * Config Options | |
== Using Massif == | == Using Massif == |
Revision as of 11:33, 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
- Add the update site (see: http://www.eclipse.org/linuxtools/downloads.php for details)
- Install Valgrind Integration
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.
- Same as running
- Any memory management errors reported by Valgrind are listed in the Valgrind view, which should appear automatically.
- Each error has a stack trace.
- If the source can be resolved, double-clicking on the stack frame will open an editor to its line.
- Each error has a stack trace.
- Config Options
Using Massif
- Link to valgrind.org doc
- Switching tool
- Interpreting Output
- Table viewer
- Interactivity
- Tree viewer
- Interactivity
- Chart
- Interactivity
- Table viewer
- Config Options
Using Cachegrind
- Link to valgrind.org doc
- Switching tool
- Interpreting Output
- Interactivity
Special Cases
- Handling program errors
- Handling Valgrind config errors