I only seem to be able to collect System.Runtime metrics from my Blazor WebAssembly app. We should investigate and document how to collect Blazor specific metrics too, like render diffs, page navigations, etc.
Repro steps:
- Install .NET 10 RC1 with the wasm-tools workload
- Clone https://github.com/danroth27/BlazorDiagnostics
- Run the app
- Browse to the Counter page
- In the browser dev console run
globalThis.getDotnetRuntime(0).collectMetrics({durationSeconds: 5});
- Click on the counter to generate some runtime data
- Open the .nettrace file in VS
Expected result: Microsoft.AspNetCore.Components runtime metrics show up in the trace
Actual result: I only see System.Runtime metrics.