Update global_debug.go
The variable was wrong and the CPU profile was never being created.
This commit is contained in:
parent
4640d1a28e
commit
84f1037b8f
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ func runDebug() error {
|
||||||
|
|
||||||
if memProfilePath != "" {
|
if memProfilePath != "" {
|
||||||
prof = profile.Start(profile.Quiet, profile.MemProfile, profile.ProfilePath(memProfilePath))
|
prof = profile.Start(profile.Quiet, profile.MemProfile, profile.ProfilePath(memProfilePath))
|
||||||
} else if memProfilePath != "" {
|
} else if cpuProfilePath != "" {
|
||||||
prof = profile.Start(profile.Quiet, profile.CPUProfile, profile.ProfilePath(memProfilePath))
|
prof = profile.Start(profile.Quiet, profile.CPUProfile, profile.ProfilePath(cpuProfilePath))
|
||||||
}
|
}
|
||||||
|
|
||||||
if insecure {
|
if insecure {
|
||||||
|
|
Loading…
Reference in a new issue