Capture and review .Net Profiler Traces on App Service (Windows)
Access the Azure Portal and navigate to the desired App Service.
Navigate to “Diagnose and Solve Problems” -> “Diagnostic Tools”
Choose “Collect .NET Profiler Trace” option.
Configure the trace options to gather data from the specific application instance, including thread details.
Reproduce the issue at step 2.
Access and examine the generated report.
In the demo application, a delay of approximately 20 seconds was observed. Refer to the browser network traces provided below.
Analyze the profiler traces to pinpoint the cause of the reported delay.
After examining the demo app’s code, it was evident that a deliberate 20-second delay was introduced in the Privacy method within the Home Controller.
Note: Default profiler log collection time is 60 seconds and it is possible to increase the default profiling duration by setting an application setting IIS_PROFILING_TIMEOUT_IN_SECONDS with a maximum value of 900 (i.e. 15 minutes).
Microsoft Tech Community – Latest Blogs –Read More