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

[Parameter Capturing] Dynamically configure if the profiler is notification-only #4391

Conversation

schmittjoseph
Copy link
Member

@schmittjoseph schmittjoseph commented May 10, 2023

Summary

Note: This is targeting a feature branch.

This PR introduces a new environment variable (DotnetMonitor_Profiler_IsMutatingProfiler) that can be set to cause our profiler to be capable of mutating the target process (not-notification-only). This PR only includes the necessary changes to the profiler and not the supporting logic in our managed code.

Our LoadAsNotificationOnly callback is invoked before profiler initialization has fully occurred so we're unable to leverage ICorProfiler to get environment variables. Instead introduce a new helper method that uses platform-specific APIs.

Release Notes Entry

@schmittjoseph schmittjoseph requested a review from a team as a code owner May 10, 2023 21:41
@ghost ghost added the needs-review label May 10, 2023
@ghost ghost removed the needs-review label May 11, 2023
@ghost ghost added the needs-review label May 11, 2023
@ghost ghost removed the needs-review label May 12, 2023
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.

2 participants