Is it possible to know adaptive optimization done in a C# application
I am curiou开发者_JAVA百科s whether it is possible to determine how/whether adaptive optimization is being in a C# application. Any pointers will be appreciated
There is no adaptive optimization in currently shipping .NET jitter versions from Microsoft. Once the machine code is generated it doesn't get altered anymore. Nor is there a sub-system that monitors code execution to provide profiling data that a 'hot-spot' optimizer could use.
You'll find an overview of jitter optimizations in this answer.
You can look at the x86 disassembly that happens at runtime with Visual Studio to see what's happened.
Deciphering it might be tough, though, since it's bytecode that's getting translated and not source code.
精彩评论