OSDN Git Service

fix performance tests
[mypaint-anime/master.git] / tests / README.profiling
1 Quick Profiling HOWTO:
2
3 Install gprof2dot.py into your $PATH:
4 http://code.google.com/p/jrfonseca/wiki/Gprof2Dot
5 Also install graphviz (to render PNGs) and feh (image viewer).
6
7 Now run
8
9 ./test_performance.py -c 1 -s load_ora
10
11 For more options see
12
13 ./test_performance.py -h
14
15
16 You can also start the profiler from within MyPaint (Menu->Help->Debug).
17 Works best with a keyboard shortcut assigned through the menu.
18
19 Use the results with care. There is profiler overhead, the work being
20 done while idling will sum up (eg. just hovering with the stylus), and
21 xorg is probably filtered out completely.
22
23 To profile the code written in C you have to use something else
24 (eg. oprofile).