It would be extremely helpful to be able to capture line coverage in Numba-compiled functions the same as in Python functions with coverage.py.
Doing this would most likely require something like the following:
@cdeil noted on the mailing list that Cython has done this already. Relevant links:
I think this needs a bit of research (some of which is done already) but I'm wondering if we can just lean on LLVM's existing tooling to do the work and then parse the output.
I figured out how to make this work. No need to do any plugin for coverage.py. It's about faking a Frame and triggering a trace event on each line. That's how cython does it.
Most helpful comment
I figured out how to make this work. No need to do any plugin for coverage.py. It's about faking a Frame and triggering a trace event on each line. That's how cython does it.