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

Add profiling to influxd #1699

Merged
merged 1 commit into from
Feb 23, 2015
Merged

Add profiling to influxd #1699

merged 1 commit into from
Feb 23, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This pull request adds -cpuprofile and -memprofile to influxd

Usage

To use profiling, run:

$ influxd -cpuprofile /tmp/cpu.prof

Then run stuff against InfluxDB and hit CTRL-C on your server to stop it. Then run pprof through the Go tool chain:

$ go tool pprof $GOBIN/influxd /tmp/cpu.prof
Entering interactive mode (type "help" for commands)
(pprof) 

I mostly use the web command which generates a call graph in SVG and pops it into your browser. There's a bunch of cool options though.

This commit adds -cpuprofile and -memprofile to influxd.
@toddboom
Copy link
Contributor

👍

toddboom added a commit that referenced this pull request Feb 23, 2015
@toddboom toddboom merged commit f8400a8 into master Feb 23, 2015
@toddboom toddboom deleted the profiling branch February 23, 2015 20:53
mark-rushakoff pushed a commit that referenced this pull request Jan 11, 2019
* fix(testing): sort label names to prevent random test failure

* actually use the correct comparison function :(
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