Browse Source

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.
Felix Lange 9 years ago
parent
commit
cafdd5931e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      internal/debug/flags.go

+ 1 - 0
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",