Skip to main content
InterviewHubPRO
Section Overview
Q29

Question 29 of 50

Part 3: CLR Internals, Native AOT & Production Diagnostics (25 - 35)

58%
C# & CLR Internals (50 Qs)•Part 3: CLR Internals, Native AOT & Production Diagnostics (25 - 35)

How do you diagnose CPU 100% spikes in .NET using dotnet-trace and SpeedScope flamegraphs?

senior LevelCode ExampleData Structures

In Simple Words: Capture live execution CPU sampling traces with dotnet-trace:

bash
dotnet-trace collect -p <pid> --providers Microsoft-DotNETCore-SampleProfiler

Open the resulting .speedscope.json file in speedscope.app to visually identify hot paths and blocking functions.