From d4c15be3268ee675b0d5853a8ffdb6c4c92585e7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 6 Aug 2020 11:30:09 +0100 Subject: add profiling example --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3