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

pprof should be initialized only once per process #502

Merged
merged 2 commits into from
Jan 11, 2018
Merged

pprof should be initialized only once per process #502

merged 2 commits into from
Jan 11, 2018

Conversation

wxing1292
Copy link
Contributor

tested using 2 canary running concurrently

@wxing1292 wxing1292 self-assigned this Jan 10, 2018
http.ListenAndServe(fmt.Sprintf("localhost:%d", port), nil)
}()

if atomic.CompareAndSwapInt32(&pprofStatus, pprofNotInitialized, pprofInitialized) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the situation where Start can be called multiple times?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

./cadence start, i.e. local run

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 66.606% when pulling 8ae311b on pprof into 7ca011c on master.

@wxing1292 wxing1292 merged commit 113a644 into master Jan 11, 2018
@wxing1292 wxing1292 deleted the pprof branch January 11, 2018 01:20
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.

3 participants