aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 29ea2f5..4cc71b6 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,10 @@ cover: fmt
go tool cover -html=$(COVERPROFILE)
rm $(COVERPROFILE)
+cpuprofile: fmt
+ @go test -c
+ @./bolt.test -test.v -test.run="^X" -test.bench=$(BENCH) -test.cpuprofile cpu.prof
+
fmt:
@go fmt ./...
@@ -25,4 +29,4 @@ test: fmt
@echo "=== RACE DETECTOR ==="
@go test -v -race -test.run=Parallel
-.PHONY: bench cloc cover fmt test
+.PHONY: bench cloc cover cpuprofile fmt memprofile test