1. valgrind --tool=callgrind --instr-atstart=no your_program_name 

启动分析

 

 
  
  1. callgrind_control -i on 

查看分析结果

 

 
  
  1. kcachegrind