Issue 21863: Display module names of C functions in cProfile (original ) (raw ) Issue21863
Created on 2014-06-24 20:23 by pitrou , last changed 2022-04-11 14:58 by admin . This issue is now closed .
Messages (4)
msg221493 - (view)
Author: Antoine Pitrou (pitrou) *
Date: 2014-06-24 20:23
Currently, cProfile output displays "built-in functions" (i.e. module functions implemented in C, such as hasattr()) using only their names. This is not very useful when those functions may be provided by any third-party library. Attached patch adds the module name (as provided by __module__) to the output.
msg221653 - (view)
Author: STINNER Victor (vstinner) *
Date: 2014-06-26 22:23
The patch looks good to me. I didn't test it, but I see that the change is already tested by existing tests.
msg221771 - (view)
Author: Roundup Robot (python-dev)
Date: 2014-06-28 03:55
New changeset 6dd4c2d30b0e by Antoine Pitrou in branch 'default': Issue #21863 : cProfile now displays the module name of C extension functions, in addition to their own name. http://hg.python.org/cpython/rev/6dd4c2d30b0e
msg221772 - (view)
Author: Antoine Pitrou (pitrou) *
Date: 2014-06-28 03:56
Thank you, committed!
History
Date
User
Action
Args
2022-04-11 14:58:05
admin
set
github: 66062
2014-06-28 03:56:44
pitrou
set
status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2014-06-28 03:55:57
python-dev
set
nosy: + python-dev messages: +
2014-06-26 22:23:11
vstinner
set
nosy: + vstinner messages: +
2014-06-26 15:51:22
pitrou
set
nosy: + ncoghlan
2014-06-24 20:23:44
pitrou
create