Skip to content

Commit cafdd59

Browse files
committed
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.
1 parent 8a3ce54 commit cafdd59

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎internal/debug/flags.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ var (
5555
memprofilerateFlag = cli.IntFlag{
5656
Name: "memprofilerate",
5757
Usage: "Turn on memory profiling with the given rate",
58+
Value: runtime.MemProfileRate,
5859
}
5960
blockprofilerateFlag = cli.IntFlag{
6061
Name: "blockprofilerate",

0 commit comments

Comments
 (0)