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

Performance tools #13

Merged
merged 2 commits into from Jun 24, 2016
Merged

Performance tools #13

merged 2 commits into from Jun 24, 2016

Conversation

boomzillawtf
Copy link
Owner

Add --perf-basic-prof-only-functions flag to node invocation to allow us to get stack traces when a node process goes to 100% CPU.

Also collect-stacks.bash script for collecting the stack traces.

Boomzilla WTF and others added 2 commits June 13, 2016 17:53
…rmance data.

Usage:
$ docker exec wtdwtf-nodebb ps -ef | grep node
$ ps -ef | grep node
$ sudo ./collect-stacks.bash $DOCKER_PID $HOST_PID

That will output a nodestacks file that can be used to make a flamegraph:

https://yunon.io/2015/11/23/generating-node-js-flame-graphs/
@boomzillawtf boomzillawtf merged commit 50408f2 into master Jun 24, 2016
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.

None yet

1 participant