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

testing: support pausing cpu profiling in benchmarks #8213

Closed
masiulaniec opened this issue Jun 15, 2014 · 2 comments

Comments

Projects
None yet
5 participants
@masiulaniec
Copy link

commented Jun 15, 2014

The benchmarking part of the "testing" package supports stopping timers while
performing complex initialisation. Perhaps something analogous could be added for cpu
profiling, so that -cpuprofile can produce a data file that excludes samples for the
complex initialisation.

The current workaround is to avoid -cpuprofile in favour of calling
runtime.StartCPUProfile from within the benchmark.
@griesemer

This comment has been minimized.

Copy link
Contributor

commented Oct 1, 2014

Comment 1:

Labels changed: added repo-main.

@masiulaniec masiulaniec added new labels Oct 1, 2014

@bradfitz bradfitz removed the new label Dec 18, 2014

@rsc

This comment has been minimized.

Copy link
Contributor

commented Apr 10, 2015

This is infeasible.

@rsc rsc closed this Apr 10, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.