Debian Codegraph @

pypy/doc/config/translation.profopt.txt

raw
1 Use GCCs profile-guided optimizations. This option specifies the the
2 arguments with which to call pypy-c (and in general the translated
3 RPython program) to gather profile data. Example for pypy-c: "-c 'from
4 richards import main;main(); from test import pystone;
5 pystone.main()'"
6
7 NOTE: be aware of what this does in JIT-enabled executables. What it
8 does is instrument and later optimize the C code that happens to run in
9 the example you specify, ignoring any execution of the JIT-generated
10 assembler. That means that you have to choose the example wisely. If
11 it is something that will just generate assembler and stay there, there
12 is little value. If it is something that exercises heavily library
13 routines that are anyway written in C, then it will optimize that. Most
14 interesting would be something that causes a lot of JIT-compilation,
15 like running a medium-sized test suite several times in a row, in order
16 to optimize the warm-up in general.