- Back to Home »
- Profiling using Callgrind tool
Posted by : Sushanth
Monday, 14 December 2015
Profiling using Callgrind tool:
Purpose:
Find execution time of
each function.
Tools:
Callgrind
Syntax:
–valgrind --tool=callgrind <Command>
Procedure
:
–Step1: Compile
in debug mode(use options –g –p)
–Step2: Callgrind command: valgrind --tool=callgrind <Command>
–Step3: Above command generates the file callgrind.out.pid.
–Step4: kcachegrind <callgrind.out.pid>
=> launches GUI