To evaluate as a metric for performance, I would like to keep statistics on how frequently an asp.net website project is compiled to MSIL code. As described in this post When does an ASP.NET Website project recompile?, there are several things that can trigger a re-compile to occur.
I am not interested in application pool restarts except when they cause a re-compile to happen.
One possibility is monitoring the temporary folder for compiles. If I delete the contents of %FrameworkInstallLocation%\Temporary ASP.NET Files, I can see that new timestamped files are created from run-time compile when I access the website. However, I do not understand the layout of the subdirectories.
What are some possibilities to track, log, or otherwise detect when an ASP.NET website project has performed an automatic, dynamic recompile?