This project is read-only.

Runtime Instrumentation with CCI

Topics: Metadata Model
Jul 7, 2013 at 1:49 PM
Is it possible to instrument assemblies at runtime in memory, like Pin or Valgrind does it? Or ist CCI only meant for static instrumentation, before the assembly is executed?

Thanks in advance.
Jul 8, 2013 at 4:14 AM
The CLR assembly loader exposes events that you can subscribe to and use to replace an assembly being loaded with another. This gives you the opportunity to instrument assemblies at runtime. I don't have any examples handy at the moment, I'm afraid.