ASP.NET Core profiling

Where can I find  a detailed documentation how to profile an ASP.NET Core, out of process configured website?

According to this article:

https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2#proxy-configuration-uses-http-protocol-and-a-pairing-token

the caller w3wp pass an auth token to the out of process Kestrel host, so I cannot imagine how DotTrace able to profile such a configuration?

 

4 comments
Comment actions Permalink

Hello,

Unfortunately, now it is not possible to profile ASP.NET Core application hosted on IIS with out of process mode. We are currently rewriting all the functionality of ASP.NET Core profiling; it will be available in the next version of dotTrace (2019.1).

I can only suggest profiling the application without IIS - just like a standalone .NET Core application (from .NET Core section of dotTrace Home/VS Integration).

Please sorry for the inconvenience.

0
Comment actions Permalink

Thanks for the quick response. If we change to configuration to inprocess, should it work using the current version?

We cannot reproduce the problem in test environment, so we have to profile the live application. But we cannot route the live traffic directly to the Kestrel host, so we cannot start it under the profiler.

0
Comment actions Permalink

I was wrong; it looks like there is a way to profile your app hosted on IIS in out of process mode.

You need to start profiling from IIS section, then make a request to your application and then select your app (or dotnet.exe in case of .NET Core 2.1) in "Processes" section of profiling controller with double-click:


Please let me know about the results.

0
Comment actions Permalink

Thank you, it works perfectly. JetBrains did not disappoint me. :)

0

Please sign in to leave a comment.