Skip to content

Investigate collecting Blazor specific runtime metrics from a Blazor WebAssembly app #64012

@danroth27

Description

@danroth27

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions