]> granicus.if.org Git - python/commit
bpo-32512: Add -m option to profile for profiling modules (#5132)
authorMario Corchero <mariocj89@gmail.com>
Mon, 5 Nov 2018 12:03:46 +0000 (15:03 +0300)
committerNick Coghlan <ncoghlan@gmail.com>
Mon, 5 Nov 2018 12:03:46 +0000 (22:03 +1000)
commitad1a25f499362eaf9cbfcafa0b8e2454eb43dcf1
tree2d5abe6b5b1f3bf01254dce0d1504930072a3d9b
parent2810dd7be9876236f74ac80716d113572c9098dd
bpo-32512: Add -m option to profile for profiling modules (#5132)

The new option in the CLI of the profile module allow to profile
executable modules. This change follows the same implementation as the
one already present in `cProfile`.

As the argument is now present on both modules, move the tests to the
common test case to be run with profile as well.
Doc/library/profile.rst
Lib/profile.py
Lib/test/test_cprofile.py
Lib/test/test_profile.py
Misc/NEWS.d/next/Library/2018-01-07-17-43-10.bpo-32512.flC-dE.rst [new file with mode: 0644]