|
|
@ -122,11 +122,11 @@ func TestHarmonyFlags(t *testing.T) { |
|
|
|
LocalAccountsFile: "./.hmy/locals.txt", |
|
|
|
LocalAccountsFile: "./.hmy/locals.txt", |
|
|
|
}, |
|
|
|
}, |
|
|
|
Pprof: harmonyconfig.PprofConfig{ |
|
|
|
Pprof: harmonyconfig.PprofConfig{ |
|
|
|
Enabled: false, |
|
|
|
Enabled: true, |
|
|
|
ListenAddr: "127.0.0.1:6060", |
|
|
|
ListenAddr: "127.0.0.1:6060", |
|
|
|
Folder: "./profiles", |
|
|
|
Folder: "./profiles", |
|
|
|
ProfileNames: []string{}, |
|
|
|
ProfileNames: []string{"cpu", "heap", "goroutine"}, |
|
|
|
ProfileIntervals: []int{600}, |
|
|
|
ProfileIntervals: []int{3600}, |
|
|
|
ProfileDebugValues: []int{0}, |
|
|
|
ProfileDebugValues: []int{0}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Log: harmonyconfig.LogConfig{ |
|
|
|
Log: harmonyconfig.LogConfig{ |
|
|
@ -1092,9 +1092,9 @@ func TestPprofFlags(t *testing.T) { |
|
|
|
expConfig: defaultConfig.Pprof, |
|
|
|
expConfig: defaultConfig.Pprof, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
args: []string{"--pprof"}, |
|
|
|
args: []string{"--pprof=false"}, |
|
|
|
expConfig: harmonyconfig.PprofConfig{ |
|
|
|
expConfig: harmonyconfig.PprofConfig{ |
|
|
|
Enabled: true, |
|
|
|
Enabled: false, |
|
|
|
ListenAddr: defaultConfig.Pprof.ListenAddr, |
|
|
|
ListenAddr: defaultConfig.Pprof.ListenAddr, |
|
|
|
Folder: defaultConfig.Pprof.Folder, |
|
|
|
Folder: defaultConfig.Pprof.Folder, |
|
|
|
ProfileNames: defaultConfig.Pprof.ProfileNames, |
|
|
|
ProfileNames: defaultConfig.Pprof.ProfileNames, |
|
|
|