Fix noinlineerr findings: cmd/vaultik (refs #61)
This commit is contained in:
@@ -17,7 +17,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer func() { _ = f.Close() }()
|
defer func() { _ = f.Close() }()
|
||||||
|
|
||||||
if err := pprof.StartCPUProfile(f); err != nil {
|
err = pprof.StartCPUProfile(f)
|
||||||
|
if err != nil {
|
||||||
panic("could not start CPU profile: " + err.Error())
|
panic("could not start CPU profile: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +36,8 @@ func main() {
|
|||||||
|
|
||||||
runtime.GC() // get up-to-date statistics
|
runtime.GC() // get up-to-date statistics
|
||||||
|
|
||||||
if err := pprof.WriteHeapProfile(f); err != nil {
|
err = pprof.WriteHeapProfile(f)
|
||||||
|
if err != nil {
|
||||||
panic("could not write memory profile: " + err.Error())
|
panic("could not write memory profile: " + err.Error())
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|||||||
Reference in New Issue
Block a user