From ef8f8d8398fb8c1349b7ca3a826c0631becb7ad8 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Fri, 19 Apr 2024 21:35:47 +0200 Subject: [PATCH] ci: add target for tracing --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a8cfdbf41..cf6b3a134 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,10 @@ pgo: go tool pprof -proto cpu.pprof default.pgo > merged.pprof mv merged.pprof default.pgo +trace: + wget -O trace.out http://localhost:6060/debug/pprof/trace?seconds=30 + gotraceui ./trace.out + benchmark: sudo cpupower frequency-set -g performance hyperfine --export-markdown=bench-cold.md \ @@ -146,5 +150,6 @@ release: install-dev-dependencies: go install gotest.tools/gotestsum@latest go install github.com/mitchellh/gox@latest + go install honnef.co/go/gotraceui/cmd/gotraceui@master .PHONY: run build build-static build-all test gobench benchmark coverage coverage-html clean clean-uncompressed-dist man show-man release