[New-bugs-announce] [issue30990] Calls to C functions using `.__call__` don't get sent to profiler.

ppperry report at bugs.python.org
Sat Jul 22 08:50:31 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30990>
_______________________________________


More information about the New-bugs-announce mailing list