Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ profiling tools

valgrind --tool=callgrind ./(Your binary)
  
It will generate a file called callgrind.out.x. You can then use kcachegrind tool to read this file. It will give you a graphical analysis of things with results like which lines cost how much. 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #profiling #tools
ADD COMMENT
Topic
Name
7+9 =