I would like to run some code (perhaps a function) right before every function call for a class and all functions of the classes that inherit from that class. I\'d like to do t
This sounds like what a profiler does. Have you looked at the source for any profiling tools?