Message287402
Output of attached profiler_c_code.py example:
---
haypo@selma$ ./python profiler_c_code.py
(<frame object at 0xf9d788>, 'call', None)
(<frame object at 0xf9d788>, 'return', 'h')
(<frame object at 0xf9d788>, 'call', None)
(<frame object at 0xf9d788>, 'return', 'e')
(<frame object at 0xf9d788>, 'call', None)
(<frame object at 0xf9d788>, 'return', 'l')
(<frame object at 0xf9d788>, 'call', None)
(<frame object at 0xf9d788>, 'return', 'l')
(<frame object at 0xf9d788>, 'call', None)
(<frame object at 0xf9d788>, 'return', 'o')
(<frame object at 0xf9d498>, 'c_call', <built-in function setprofile>)
---
Except of sys.setprofile(), the profiler doesn't see any C calls! list() and map() are simply "hidden".
So tools like coverage miss a lot of C call? Again, is it a compromise between performance and correctness, or just a regular bug? |
|
Date |
User |
Action |
Args |
2017-02-09 11:05:29 | vstinner | set | recipients:
+ vstinner, methane, serhiy.storchaka |
2017-02-09 11:05:29 | vstinner | set | messageid: <1486638329.14.0.865772005559.issue29502@psf.upfronthosting.co.za> |
2017-02-09 11:05:29 | vstinner | link | issue29502 messages |
2017-02-09 11:05:28 | vstinner | create | |
|