I want to measure how my Pintool worsens the execution time of an executable in the case where it simply does "empty instrumentation".
Basicly in my Pintool I got a callback which is called every time an Image is loaded which, in turn, inserts analysis functions for specific routines.
So I was thinking of measuring the "empty instrumentation" overhead using two modes of operation:
- Having an empty Image callback function, to be called when each image is loaded, instead of the ordinary one
- Having empty routine analysis functions to be called instead of the ordinary ones
Is this approach viable? Are there better solutions I am unaware of?