mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
added more profiling targets to Makefile
This commit is contained in:
parent
e2a51bb5a5
commit
2faa088178
12
Makefile
12
Makefile
@ -74,4 +74,14 @@ test-gctrace:
|
|||||||
GODEBUG=gctrace=1 go test ./...
|
GODEBUG=gctrace=1 go test ./...
|
||||||
|
|
||||||
test-malloctrace:
|
test-malloctrace:
|
||||||
GODEBUG=allocfreetrace=1 go test ./...
|
GODEBUG=allocfreetrace=1 go test ./...
|
||||||
|
|
||||||
|
trace:
|
||||||
|
curl http://localhost:6060/debug/pprof/trace?seconds=60 > cs-trace
|
||||||
|
go tool trace cs-trace
|
||||||
|
|
||||||
|
pprof-heap-web:
|
||||||
|
go tool pprof -http=":8081" http://localhost:6060/debug/pprof/heap
|
||||||
|
|
||||||
|
pprof-cpu-web:
|
||||||
|
go tool pprof -http=":8081" http://localhost:6060/debug/pprof/profile
|
||||||
Loading…
Reference in New Issue
Block a user