]> code.ossystems Code Review - openembedded-core.git/commit
python3: enable profile optimized builds
authorAnuj Mittal <anuj.mittal@intel.com>
Thu, 16 Aug 2018 06:26:33 +0000 (14:26 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Aug 2018 21:40:06 +0000 (22:40 +0100)
commit05a2a53f9cc7e75b4a3838ab9368cadf0f15ba1b
treed4bf062e1cb515537eba21b0cdab8f2e92aebdc3
parent4e37ca369205dccfaf730d6ac4d33c23fb995b5f
python3: enable profile optimized builds

Enable profile guided optimization (pgo) for python3. Enabling pgo in
python is generally as simple as invoking the target profile-opt which:

- builds python binaries with profile instrumentation enabled,
- runs a specific profile task using that python to get the profile
data and,
- feeds the compiler with this profile data and rebuilds python.

This change invokes qemu-user for the second step of running a profile
task using target python. Depending on how long profile task takes to
run, this might add a significant time to compilation (which would be
true for native builds too). The default profile task can be changed by
the users depending on what makes sense for their use case (or can be
left empty). In case qemu-user isn't supported, profile task won't be run.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/0002-Makefile-add-target-to-split-profile-generation.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3/Use-correct-CFLAGS-for-extensions-when-cross-compili.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.5.5.bb