This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jul2
Recipients jul2, vstinner
Date 2022-01-24.21:25:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643059545.59.0.789365625233.issue46507@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2022-01-24 21:25:45jul2setrecipients: + jul2, vstinner
2022-01-24 21:25:45jul2setmessageid: <1643059545.59.0.789365625233.issue46507@roundup.psfhosted.org>
2022-01-24 21:25:45jul2linkissue46507 messages
2022-01-24 21:25:45jul2create