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:

Sample output for source view (C+asm):

Sample output for full frame capture:

  • pmctools/pmckcachegrind.txt
  • Last modified: 2010/03/09 22:55
  • by FabienThomas