[issue21862] cProfile command-line should accept "-m module_name" as an alternative to script path

Nick Coghlan report at bugs.python.org
Tue Nov 7 02:48:46 EST 2017


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Interesting - I'd never looked at how cProfile works before, and the fact it already doesn't support the "-i" (interactive) switch makes it much simpler to handle than the pdb case.

So from a runpy perspective, this approach gets a +1 from me, but I'd prefer if there was someone more familiar with the cProfile module that was willing to handle the merge.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21862>
_______________________________________


More information about the Python-bugs-list mailing list