Source-level coverage metrics are really hard in the presence of a JIT. Here's pypy's solution: https://morepypy.blogspot.co.uk/2013/10/making-coveragepy-faster-under-pypy.html (cf -Og in gcc)