Skip to content

Commit

Permalink
Generate merged pprof profile on build
Browse files Browse the repository at this point in the history
  • Loading branch information
jspc committed Jan 4, 2024
1 parent 001e13c commit a7dd197
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
go_build_cmd ?= CGO_ENABLED=1 go build -ldflags="-s -w" -trimpath -race -pgo merged.pprof

littleauth: *.go go.*
littleauth: *.go go.* merged.pprof
$(go_build_cmd) -o $@
-upx $@

merged.pprof: profiles/*.pprof
go tool pprof -proto profiles/*.pprof merged.pprof

0 comments on commit a7dd197

Please sign in to comment.