Using perf with krita

Cyrille Berger Skott cberger at cberger.net
Mon Feb 14 10:48:12 CET 2011


Hi,

After reading [1] I got interested in testing a profiling session with Krita 
and perf. Sounds much more easy than oprofile and could become a really good 
alternative.

If you are only interested in seeing how a change affects a benchmark run "
perf stat ./benchmarkapplication" before and after, and compare the counter 
stats.

If you want to find out what is taking time in Krita (or any other program 
such as a benchmark), run:

  perf record -g krita

The "-g" option will compute the call graph. Then when krita has quit, you can 
run:

  perf report

and you will get a list of functions that have taken time. Then note down the 
symbols for which you want detail and run to get the annotated code:

  perf annotate "symbolname"


[1] http://zecke.blogspot.com/2011/02/how-to-make-gnu-smalltalk-
interpreter.html
-- 
Cyrille Berger Skott


More information about the kimageshop mailing list