github.com/xgzlucario/GigaCache@v0.0.0-20240508025442-54204e9c8a6b/Makefile (about) 1 gc-trace-run: 2 GODEBUG=gctrace=1 go run example/*.go 3 4 test-cover: 5 go test -race -coverprofile=coverage.txt -covermode=atomic 6 go tool cover -html=coverage.txt -o coverage.html 7 rm coverage.txt 8 9 bench: 10 go test -bench . -benchmem 11 12 web-profile: 13 go tool pprof -http=:18081 "http://localhost:6060/debug/pprof/profile?seconds=60" 14 15 cmd-heap: 16 go tool pprof "http://localhost:6060/debug/pprof/heap" 17 18 web-heap: 19 go tool pprof -http=:18082 "http://localhost:6060/debug/pprof/heap?seconds=60" 20 21 cmd-allocs: 22 go tool pprof "http://localhost:6060/debug/pprof/allocs" 23 24 web-allocs: 25 go tool pprof -http=:18083 "http://localhost:6060/debug/pprof/allocs?seconds=60" 26 27 cmd-mutex: 28 go tool pprof "http://localhost:6060/debug/pprof/mutex" 29 30 cmd-block: 31 go tool pprof "http://localhost:6060/debug/pprof/block"