mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Makefile: add pprof-cpu
rule for inspecting CPU profiles with PPROF_FILE=/path/to/cpu.pprof make pprof-cpu
This commit is contained in:
parent
3c90d77858
commit
d6ade02fd3
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -26,6 +26,9 @@ package: package-victoria-metrics
|
|||
release: victoria-metrics-prod
|
||||
cd bin && tar czf victoria-metrics-$(PKG_TAG).tar.gz victoria-metrics-prod
|
||||
|
||||
pprof-cpu:
|
||||
go tool pprof -trim_path=github.com/VictoriaMetrics/VictoriaMetrics@ $(PPROF_FILE)
|
||||
|
||||
fmt:
|
||||
GO111MODULE=on gofmt -l -w -s ./lib
|
||||
GO111MODULE=on gofmt -l -w -s ./app
|
||||
|
|
Loading…
Reference in a new issue