Daniël van Noord <breeuwer.dragonder...@icloud.com> 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 the way to go? Allow `cProfile` to profile code directly by supplying the `-c` or `--code` argument, which indicates that the last argument should be considered code instead of a file path? ---------- nosy: +danielnoord _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46507> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com