From b0083d99ef49b9280a52e740a76ca7abc8fd7a81 Mon Sep 17 00:00:00 2001 From: Vikram Rangnekar Date: Wed, 27 Mar 2019 00:15:14 -0400 Subject: [PATCH] Add compiler profiling --- psql/pprof_cpu.sh | 4 ++-- psql/pprof_mem.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/psql/pprof_cpu.sh b/psql/pprof_cpu.sh index ce7ec54..f0e2d23 100755 --- a/psql/pprof_cpu.sh +++ b/psql/pprof_cpu.sh @@ -1,3 +1,3 @@ #!/bin/sh -go test -bench=. -benchmem -cpuprofile cpu_profile.out -go tool pprof cpu_profile.out \ No newline at end of file +go test -bench=. -benchmem -cpuprofile cpu.out +go tool pprof -cum cpu.out \ No newline at end of file diff --git a/psql/pprof_mem.sh b/psql/pprof_mem.sh index ab35aca..a88145f 100755 --- a/psql/pprof_mem.sh +++ b/psql/pprof_mem.sh @@ -1,3 +1,3 @@ #!/bin/sh -go test -bench=. -benchmem -memprofile mem_profile.out -go tool pprof mem_profile.out \ No newline at end of file +go test -bench=. -benchmem -memprofile mem.out +go tool pprof -cum mem.out \ No newline at end of file