From cafdd5931e66e827eced3d4a53fb9c3a43bb862b Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 12 Mar 2016 00:36:15 +0100 Subject: [PATCH] internal/debug: don't disable heap profile collection by default Setting runtime.MemProfileRate to 0 through the flag default value makes it impossible to get an 'in-use' profile. --- internal/debug/flags.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 22e524cd6..76f32561a 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -55,6 +55,7 @@ var ( memprofilerateFlag = cli.IntFlag{ Name: "memprofilerate", Usage: "Turn on memory profiling with the given rate", + Value: runtime.MemProfileRate, } blockprofilerateFlag = cli.IntFlag{ Name: "blockprofilerate",