Message411517
well, you want to use
python3 -mcProfile -othis.prof 'oneliner in python to test something'
And weirdly enough this normally expected behaviour does not work.
It's because last argument is expected to be the path of the script name to profile.
But, it can be fixed easily with no downside
Since it is an expected behaviour and is minimal changing anything in documentation or news seems to superfluous
An exemple of « this is a standard de fait » is the fact that the awesome module of vstinner timeit does this already.
https://github.com/python/cpython/pull/30859 |
|
Date |
User |
Action |
Args |
2022-01-24 21:25:45 | jul2 | set | recipients:
+ jul2, vstinner |
2022-01-24 21:25:45 | jul2 | set | messageid: <1643059545.59.0.789365625233.issue46507@roundup.psfhosted.org> |
2022-01-24 21:25:45 | jul2 | link | issue46507 messages |
2022-01-24 21:25:45 | jul2 | create | |
|