diff options
author | Felix Lange <fjl@twurst.com> | 2016-03-12 07:36:15 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-03-12 07:41:34 +0800 |
commit | cafdd5931e66e827eced3d4a53fb9c3a43bb862b (patch) | |
tree | cdfcd67f5b56a55c49d8355619fd79cbbe937579 /internal | |
parent | 8a3ce5450a309866c4cb1acc1e783324f8597293 (diff) | |
download | go-tangerine-cafdd5931e66e827eced3d4a53fb9c3a43bb862b.tar.gz go-tangerine-cafdd5931e66e827eced3d4a53fb9c3a43bb862b.tar.zst go-tangerine-cafdd5931e66e827eced3d4a53fb9c3a43bb862b.zip |
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.
Diffstat (limited to 'internal')
-rw-r--r-- | internal/debug/flags.go | 1 |
1 files changed, 1 insertions, 0 deletions
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", |