mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Add some basic profiling endpoints over http to start digging into memory and request latencies.
556 B
556 B
Profiling
etcd exposes profiling information from the Go pprof package over HTTP.
The basic browseable interface can be found at http://127.0.0.1:4001/debug/pprof.
Heap memory profile
go tool pprof ./bin/etcd http://127.0.0.1:4001/debug/pprof/heap
CPU profile
go tool pprof ./bin/etcd http://127.0.0.1:4001/debug/pprof/profile
Blocked goroutine profile
go tool pprof ./bin/etcd http://127.0.0.1:4001/debug/pprof/block
For more information on using the tools see http://blog.golang.org/profiling-go-programs