More profiling help

[ci skip]
pull/4440/head
Philip O'Toole 2015-10-13 15:23:07 -07:00
parent ff9a3072ab
commit 7f5b486e99
1 changed files with 2 additions and 1 deletions

View File

@ -229,7 +229,8 @@ When troubleshooting problems with CPU or memory the Go toolchain can be helpful
# start influx with profiling
./influxd -cpuprofile influxd.prof
# run queries, writes, whatever you're testing
# open up pprof
# Quit out of influxd and influxd.prof will then be written.
# open up pprof to examine the profiling data.
go tool pprof influxd influxd.prof
# once inside run "web", opens up browser with the CPU graph
# can also run "web <function name>" to zoom in. Or "list <function name>" to see specific lines