Tasks #825

Tasks #824: Measure CPU time via callgrind

Add Valgrind support

Added by Anonymous over 12 years ago. Updated almost 12 years ago.

Status:ResolvedStart date:01/24/2012
Priority:NormalDue date:
Assignee:M. Rolf% Done:

100%

Category:-
Target version:-

Description

  1. Include valgrind/callgrind.h
  2. Start instrumentation with the macro
    CALLGRIND_START_INSTRUMENTATION;
  3. Stop instrumentation with the macro
    CALLGRIND_STOP_INSTRUMENTATION;
  4. Execute callgind with the command line argument
    valgrind --tool=callgrind --instr-atstart=no $EXECUTABLE

(This can be done multiple times)

See Profiling sections of the code

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

Also available in: Atom PDF