it surprises me that I found no evidence of someone having invented it before.
It sounds a little like they re-invented Detours.
It sounds a little like they re-invented Detours.
Use nops (or other placeholders to insert "counter increment" fills) on instrumented runs, e.g. in test, that way you don't have to modify the "production" code to measure test coverage.