Skip to content

check telemetry should be collected before collecting mem info #11792

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

Conversation

JanProvaznik
Copy link
Member

Fixes #11791

Context

dotnet/runtime#114389 (comment)

Changes Made

wrap with check that we're using telemetry

Testing

existing tests

Notes

@Copilot Copilot AI review requested due to automatic review settings May 5, 2025 17:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that telemetry is enabled before processing memory data by wrapping telemetry statistic calls within a conditional block.

  • Wrapped ExecutionStarted telemetry call with a telemetry check
  • Wrapped ExecutionStopped telemetry call similarly

@JanProvaznik JanProvaznik changed the title check that telemetry is sent before collecting memory data check telemetry should be collected before collecting mem info May 5, 2025
@JanProvaznik JanProvaznik requested a review from SimaTian May 6, 2025 09:16
@JanProvaznik JanProvaznik merged commit 49ce4f1 into dotnet:main May 6, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

[Performance]: redundant measurement of GC memory regresses build times for s390x
3 participants