Profiler and NGEN’ed images.

[NOTE: This is a repost from my old blog www.debugtricks.com. The old blog no longer exists and I'll be migrating my old posts over to this blog.]

Question: How does the runtime (CLR) decide which flavor of a module to load while profiling? Under what circumstances will it load the profiler-enhanced ngen’ed images? When does it load regular ngen’ed images? Can I use specific profiler event-masks to control the runtime’s behavior? I’m totally confused. Help! 

 

Answer: Pictures speak more than words…………