This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients methane, serhiy.storchaka, vstinner
Date 2017-02-09.11:05:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486638329.14.0.865772005559.issue29502@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-02-09 11:05:29vstinnersetrecipients: + vstinner, methane, serhiy.storchaka
2017-02-09 11:05:29vstinnersetmessageid: <1486638329.14.0.865772005559.issue29502@psf.upfronthosting.co.za>
2017-02-09 11:05:29vstinnerlinkissue29502 messages
2017-02-09 11:05:28vstinnercreate