Profiling slow start of debug web application

Hi,

I have web application. Running debug in Visual Studio takes so long. Sometimes 1-2 minutes before web starts in debug mode.

Is it possible to profile this to check what exactly takes so long?

 

Regards

René

0
3 comments

Hi René,

 

Yes, in this case, you can try to attach to the corresponding IIS (w3wp.exe) or IIS Express (iisexpress.exe) process right after the start of debugging.

I would recommend using Timeline profiling mode in this case. However, Sampling can also be useful.

0

And is it possible to profile from start? I mean, I need to know about everything from pressing F5 (or start debug). So basically I need to trace start of IIS Express until for example login page shows up, then look for what takes so long. 

0

I see. Well, you can use ".NET process" profiling mode; in this mode, any .NET process started after you run a profiling session will be profiled. See this page for details: https://www.jetbrains.com/help/profiler/Profile_NET_Process.html

0

Please sign in to leave a comment.