New submission from ppperry:
If you create a file called `inputtest.py` with the contents
`input.__call__()`, and run the built-in profile module on it, it doesn't
notice the call to `input`, and produces a report not including that call.
4 function calls in 0.000 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.000 0.000 :0(exec)
1 0.000 0.000 0.000 0.000 :0(setprofile)
1 0.000 0.000 0.000 0.000 inputtest.py:1(<module>)
1 0.000 0.000 0.000 0.000 profile:0(<code object <module>
at 0x00000000029880C0, file "inputtest.py", line 1>)
0 0.000 0.000 profile:0(profiler)
----------
components: Interpreter Core, Library (Lib)
messages: 298847
nosy: ppperry
priority: normal
severity: normal
status: open
title: Calls to C functions using `.__call__` don't get sent to profiler.
type: behavior
versions: Python 2.7, Python 3.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com