This is an old revision of the document!
-– Work in progress —
Where: http://gitorious.org/~fabient/freebsd/fabient-sandbox/commits/work/hwpmc_plugin
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:
- if you want to merge PMC (useful for SMP capture): edit .cg and put the same name on events: line.
- call count is actually roughly estimated by detecting when two consecutive sample hit with a distance > 1
Sample output for graph view: Kcachegrind_pmctest_graphview.png
Sample output for source view (C+asm): Kcachegrind_pmctest_srcview.png