KEMBAR78
Add Restore Instrumentation by brianrob · Pull Request #5650 · NuGet/NuGet.Client · GitHub
Skip to content

Conversation

@brianrob
Copy link
Contributor

@brianrob brianrob commented Feb 28, 2024

Adds restore instrumentation via NuGetEventSource to enable performance analysis and comparisons on particular areas of restore.

Bug

Fixes: NuGet/Home#13274

Regression? Last working version:

Description

Adds ETW events for measuring performance during restore

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception - Not needed
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@brianrob brianrob requested a review from a team as a code owner February 28, 2024 00:52
@dotnet-policy-service dotnet-policy-service bot added the Community PRs created by someone not in the NuGet team label Feb 28, 2024
Copy link
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a better name for 1 of the events.
The rest look great.

@jeffkl jeffkl self-assigned this Feb 28, 2024
nkolev92
nkolev92 previously approved these changes Feb 28, 2024
jeffkl
jeffkl previously approved these changes Feb 28, 2024
Copy link
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. When you have a chance, can you paste a screenshot showing some events and what they look like? I want everyone to be able visualize what this looks like in PerfView

@brianrob
Copy link
Contributor Author

Absolutely. Here's a screenshot of the events view in PerfView displaying these events:

image

@nkolev92
Copy link
Member

It seems like dotnet format is complaining about a whitespace change.

Not immediately obvious to me, but this should be easily reproducible: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=9160077&view=logs&j=05c93c9e-1e6d-54c9-bea4-701773852b98&t=ace55480-569f-557a-9ed3-d2ed255eda7f.

@brianrob brianrob dismissed stale reviews from jeffkl and nkolev92 via f3128f5 February 28, 2024 23:10
@brianrob
Copy link
Contributor Author

Thanks @nkolev92. I think I fixed it.

@jeffkl jeffkl enabled auto-merge (squash) February 29, 2024 16:15
@jeffkl jeffkl merged commit f9b48fa into NuGet:dev Feb 29, 2024
@brianrob brianrob deleted the dev-brianrob-perf-instrumentation branch February 29, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add event tracing to restore to make it possible to measure performance

3 participants