summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a2c6657..24dd61f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,3 +6,6 @@ test:
go test ./... -v
bench:
go test -run=10 -bench=. ./... -v
+profile:
+ go test -bench=QuickSort ./sort -memprofile memprofile.out -cpuprofile profile.out
+ go tool pprof profile.out