[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-03-16 Thread Daniël van Noord
Daniël van Noord added the comment: There were some comments on the (now closed) PR associated to this report. One was about requiring a new flag to tell cProfile to consider the code in question code instead of a file path. `-c` was proposed, I presume abbreviating `--code`. Is this indeed t

[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-01-24 Thread julien tayon
Change by julien tayon : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-01-24 Thread julien tayon
New submission from julien tayon : 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