Commit 2aa522b8 authored by Leonard Mosescu's avatar Leonard Mosescu
Browse files

Sample instrumentation for basic block code coverage

On the entry of every basic block, inject a call to a tracing method:

   CodeCoverage.TraceBasicBlock(block_id)

This is a slightly more complex instrumentation compared to inserting
entry/exit hooks since it requires allocating scratch registers and the CFG.
As such, is both a sample of how code coverage can be implemented and an
very aggressive stress test for bytecode modification.

Test: bazel test :dexter_tests

Change-Id: If496292f15bfcf6a396751e68a77d31f131fb32b
parent c58eeb70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment