File: README.profiling.md

package info (click to toggle)
mypaint 2.0.1-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,884 kB
  • sloc: python: 43,893; cpp: 6,931; xml: 2,475; sh: 473; makefile: 25
file content (24 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Quick Profiling HOWTO

Install gprof2dot.py into your $PATH:
<https://github.com/jrfonseca/gprof2dot>
Also install graphviz (to render PNGs),
and an image viewer.

Now run

    tests/test_performance.py -c 1 -s load_ora

For more options see

    test/test_performance.py -h

You can also start the profiler from within MyPaint (Menu→Help→Debug).
Works best with a keyboard shortcut assigned through the menu.

Use the results with care. There is profiler overhead, the work being
done while idling will sum up (e.g. just hovering with the stylus), and
X11 async stuff is probably filtered out completely.

To profile the code written in C you have to use something else
(e.g. `oprofile`).