Tasks #825
Tasks #824: Measure CPU time via callgrind
Add Valgrind support
Status: | Resolved | Start date: | 01/24/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | M. Rolf | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
- Include
valgrind/callgrind.h
- Start instrumentation with the macro
CALLGRIND_START_INSTRUMENTATION;
- Stop instrumentation with the macro
CALLGRIND_STOP_INSTRUMENTATION;
- Execute callgind with the command line argument
valgrind --tool=callgrind --instr-atstart=no $EXECUTABLE
(This can be done multiple times)
History
#1 Updated by Anonymous over 12 years ago
- Parent task set to #824
#2 Updated by M. Rolf almost 12 years ago
- Status changed from New to Resolved
- Assignee set to M. Rolf
- % Done changed from 0 to 100
Check it out:
valgrind --tool=callgrind --instr-atstart=no ./examples/ExampleStlAccess -w 0 -i 0 -r 100