Update with memory profiling instructions

[ci skip]
pull/5218/merge
Philip O'Toole 2015-12-23 15:19:57 -05:00
parent 3489c30b85
commit f3e97fdba5
1 changed files with 2 additions and 2 deletions

View File

@ -214,11 +214,11 @@ For more information on `go vet`, [read the GoDoc](https://godoc.org/golang.org/
Profiling Profiling
----- -----
When troubleshooting problems with CPU or memory the Go toolchain can be helpful. You can start InfluxDB with CPU or memory profiling turned on. For example: When troubleshooting problems with CPU or memory the Go toolchain can be helpful. You can start InfluxDB with CPU and memory profiling turned on. For example:
```sh ```sh
# start influx with profiling # start influx with profiling
./influxd -cpuprofile influxd.prof ./influxd -cpuprofile influxdcpu.prof -memprof influxdmem.prof
# run queries, writes, whatever you're testing # run queries, writes, whatever you're testing
# Quit out of influxd and influxd.prof will then be written. # Quit out of influxd and influxd.prof will then be written.
# open up pprof to examine the profiling data. # open up pprof to examine the profiling data.