Draft: Add profiling to leapp and snactor
Picking up where #482 left off. For science, profit and fun.
LEAPP_CPROFILE=1 turns on the profiler and shows stats after a successful execution. Maybe an option would be better instead...
Can one of the admins verify this patch?
Thank you for contributing to the Leapp project!
Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergable.
If you want to re-run tests or request review, you can use following commands as a comment:
- leapp-ci build to run unit tests, copr build and e2e tests in OAMG CI
- e2e tests to run unit tests, copr build and end-to-end tests in Murphy CI (OAMG members only) [OLD PIPELINE]
- review please to notify leapp developers of review request
Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please consider rerunning the CI by commenting leapp-ci build (might require several comments). If the problem persists, contact leapp-infra.
FYI https://github.com/benfred/py-spy
Closing. so far we do not see it valuable right now - and if we find, we can start to work on it again.