Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787785 - sys-apps/portage: add unit test option to report profiling results similar to a code coverage report
Summary: sys-apps/portage: add unit test option to report profiling results similar to...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-02 20:57 UTC by Zac Medico
Modified: 2021-05-02 21:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2021-05-02 20:57:52 UTC
https://pypi.org/project/pytest-profiling/


Since pytest-profiling is only 150 loc, so we might copy pieces into our own test framework rather than dive into pytest:

https://github.com/man-group/pytest-plugins/blob/master/pytest-profiling/pytest_profiling.py
Comment 1 Zac Medico gentoo-dev 2021-05-02 21:06:13 UTC
The fix for bug 756199 should lead to a noticeable difference in profiling data for lib/portage/tests/resolver/test_merge_order.py cases that involve circular dependencies.