I am trying to find out why my web application (.NET + Sitecore) takes so long to start, but dottrace makes it start faster.
The current startup time is about 270 seconds, but when I start application with dottrace it actually takes 30 seconds. This is reproducible every time including other developers machines.
I am using .NET 4 and IIS 10 (app pool runs as Network Service).
The performance depends on the Windows Kernel Timer resolution, and dotTrace changes the value of this timer to the minimum possible value. So if dotTrace makes your program faster, it may indicate that (for example) there are many Thread.Sleep(n) calls in your program, where "n" is a relatively small number (1-5-10-20 milliseconds). Do you have such calls in your application?