mirror of https://github.com/status-im/op-geth.git
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.
This commit is contained in:
parent
8a3ce5450a
commit
cafdd5931e
|
@ -55,6 +55,7 @@ var (
|
||||||
memprofilerateFlag = cli.IntFlag{
|
memprofilerateFlag = cli.IntFlag{
|
||||||
Name: "memprofilerate",
|
Name: "memprofilerate",
|
||||||
Usage: "Turn on memory profiling with the given rate",
|
Usage: "Turn on memory profiling with the given rate",
|
||||||
|
Value: runtime.MemProfileRate,
|
||||||
}
|
}
|
||||||
blockprofilerateFlag = cli.IntFlag{
|
blockprofilerateFlag = cli.IntFlag{
|
||||||
Name: "blockprofilerate",
|
Name: "blockprofilerate",
|
||||||
|
|
Loading…
Reference in New Issue