Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure performance of individual diagnostics #7455

Open
Sybren- opened this issue Oct 23, 2024 · 0 comments
Open

Measure performance of individual diagnostics #7455

Sybren- opened this issue Oct 23, 2024 · 0 comments

Comments

@Sybren-
Copy link

Sybren- commented Oct 23, 2024

With


<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
    <ReportAnalyzer>true</ReportAnalyzer>
  </PropertyGroup>
</Project>

and the command dotnet build my_project.csproj /binaryLogger

I was able to create a msbuildlog. When I open this file using the MSBuild Structured Log Viewer I see the following entry for my analyzer:

Image

This shows the accumulated time for the five diagnostics. Is it possible to get the time for each individual diagnostic? With a graph in which function(s) the time is spent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant