21 lines
320 B
Makefile
21 lines
320 B
Makefile
run:
|
|
go run pkg/main.go
|
|
|
|
race:
|
|
go run --race pkg/main.go
|
|
|
|
run-profiler:
|
|
go run pkg/main.go -cpuprofile cpu.prof -memprofile mem.prof
|
|
|
|
profile-cpu-web:
|
|
go tool pprof -http=127.0.0.1:9990 cpu.prof
|
|
|
|
profile-mem-web:
|
|
go tool pprof -http=127.0.0.1:9991 mem.prof
|
|
|
|
build:
|
|
go build pkg/main.go
|
|
|
|
test:
|
|
go test pkg/main.go
|