>

Monday, 14 December 2015

Profiling using Callgrind tool

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

0 comments:

Post a comment