Open
Description
Repro steps:
- Install .NET 10 Preview 4 with the wasm-tools workload
dotnet new blazor -int WebAssembly -o BlazorApp
- Edit BlazorApp.Client.csproj to add the following MSBuild properties:
<WasmPerfTracing>true</WasmPerfTracing>
<WasmPerfInstrumentation>all</WasmPerfInstrumentation>
<EventSourceSupport>true</EventSourceSupport>
<MetricsSupport>true</MetricsSupport>
cd BlazorApp/BlazorApp
dotnet run
- Browse to the Counter page
- In the browser dev console run
globalThis.getDotnetRuntime(0).collectCpuSamples({durationSeconds: 5});
and then click the Counter button repeatedly to generate some runtime data. - Open the downloaded .nettrace file in VS
Expected result: CPU data shows up in the CPU Usage tab in VS
Actual result: The CPU Usage tab displays "There is no data available to show."