Skip to content

Commit

Permalink
ci: add target for tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Apr 19, 2024
1 parent bece451 commit ef8f8d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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

0 comments on commit ef8f8d8

Please sign in to comment.