DA0009: High % time in JIT
Rule Id |
DA0009 |
Category |
.NET Framework Usage |
Rule type |
Warning |
Cause
A significant percentage of application execution time was spent in the Just In Time (JIT) compiler.
Rule Description
Managed code must be compiled into native code to execute at runtime in a process that is called Just In Time (JIT) compilation. This process is expensive and should be minimized.
How to Investigate a Warning
One or more of the following procedures might reduce the time that your application spends in the JIT compiler:
Use NGen (native image generation) to convert your application to native code. For more information, see this topic on the Microsoft Web site: CLR Inside Out: The Performance Benefits of NGen.
If your application creates multiple AppDomains, set them to load assemblies as domain neutral. For more information, see this topic on the Microsoft Web site: Application Domains and Assemblies.
Try to minimize the classes and assemblies that your code path accesses. Consider using code coverage to determine these components. For more information, see Walkthrough: Run Tests and View Code Coverage