Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pmctools:pmckcachegrind [2009/11/29 12:24] – FabienThomaspmctools:pmckcachegrind [2010/03/09 22:55] (current) – FabienThomas
Line 1: Line 1:
-[[/PmcTools|PmcTools]] Kcachegrind support+[[/PmcTools|PmcTools]] Kcachegrind support allow full inspection of pmc capture under Kcachegrind (kde4sdk). 
 + 
 +Sample command: 
 + 
 +pmcstat -Sinstructions -O/tmp/pmctest.bin ~/pmctest/prog/pmctest 1000 
 + 
 +pmcstat -R/tmp/pmctest.bin -F/tmp/pmctest.cg 
 + 
 +/usr/local/kde4/bin/kcachegrind /tmp/pmctest.cg 
 + 
 +Tips: 
 +  * you can add formula to the file or with the editor in kcachegrind 
 +    * "event: Sum = INST_RETIRED.ANY0 + INST_RETIRED.ANY1" (Sum of 2 core) 
 +  * call count is actually roughly estimated by detecting when two consecutive sample hit with a distance > 1 
 + 
 +Sample output for graph view: 
 + 
 +{{pmctools/pmckcachegrind/kcachegrind_pmctest_graphview.png}} 
 + 
 +Sample output for source view (C+asm): 
 + 
 +{{pmctools/pmckcachegrind/kcachegrind_pmctest_srcview.png}} 
 + 
 +Sample output for full frame capture: 
 + 
 +{{pmctools/pmckcachegrind/kcachegrind_fullframe.png}}
  
  • pmctools/pmckcachegrind.1259497453.txt.gz
  • Last modified: 2009/11/29 12:24
  • by FabienThomas