.NET MAUI › Performance & Optimization
How do you profile a MAUI app to find performance bottlenecks?
AdvancedAnswer
Use dotnet-trace and dotnet-counters for CPU and GC, platform profilers for rendering, and the .NET MAUI diagnostics/visual-tree tools. Measure cold vs warm startup, layout time, and allocation rates. Establish a baseline, change one thing, and re-measure to attribute improvements accurately.
dotnet-trace collect --process-id <pid> --profile cpu-sampling
dotnet-counters monitor --process-id <pid> System.RuntimeReal-world example A team pinpoints excessive GC pressure with dotnet-counters, then removes per-frame allocations to hit 60fps scrolling.