Runtime Instrumentation with CCI

Topics: Metadata Model
Jul 7, 2013 at 12: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 3: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.