aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-12 07:36:15 +0800
committerFelix Lange <fjl@twurst.com>2016-03-12 07:41:34 +0800
commitcafdd5931e66e827eced3d4a53fb9c3a43bb862b (patch)
treecdfcd67f5b56a55c49d8355619fd79cbbe937579 /internal
parent8a3ce5450a309866c4cb1acc1e783324f8597293 (diff)
downloaddexon-cafdd5931e66e827eced3d4a53fb9c3a43bb862b.tar.gz
dexon-cafdd5931e66e827eced3d4a53fb9c3a43bb862b.tar.zst
dexon-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.go1
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",