Build/Test Issues

Execution time includes JITting/DLL loading time

Started by wasaczd on 5,635 views

A very nice feature of NCrunch is displaying of execution time for each line of code and highlighting lines with long time.

However, as far as I noticed, this time includes time spent in JITter or time spend for loading external assemblies/not managed dlls. When I run any test after all test have passed, the execution time changes and many of the highlighted lines become not highlighted.
This is very true. The recording of line-level execution times is very physical and can vary depending upon low level activities that are occurring in the system (such as the JIT, thread context switches, etc). I'm not sure if this is something I can easily fix, but it's certainly something I'm thinking about :)

Post a reply

Log in to reply.