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

profiler: log when profiler is stopped #1433

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

nsrip-dd
Copy link
Contributor

This is mainly motivated by a support case where the user did

profiler.Start(...)
profiler.Stop()

instead of

profiler.Start(...)
defer profiler.Stop()

and wasn't getting any profiles. Explicitly logging when the profiler is
stopped makes that easier to catch. Only log if startup logging is also
enabled to avoid log spam.

This is mainly motivated by a support case where the user did

	profiler.Start(...)
	profiler.Stop()

instead of

	profiler.Start(...)
	defer profiler.Stop()

and wasn't getting any profiles. Explicitly logging when the profiler is
stopped makes that easier to catch. Only log if startup logging is also
enabled to avoid log spam.
@nsrip-dd nsrip-dd requested a review from a team as a code owner August 17, 2022 18:59
@nsrip-dd nsrip-dd added this to the Triage milestone Aug 17, 2022
@nsrip-dd nsrip-dd merged commit d7ed0bd into main Aug 30, 2022
@nsrip-dd nsrip-dd deleted the nick.ripley/profiler-log-stop branch August 30, 2022 19:06
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