Add logging when heap profiler is created
This commit is contained in:
parent
f69cf7911e
commit
b60ebc637f
|
@ -32,6 +32,7 @@ func captureHeapProfile() {
|
||||||
if err := pprof.WriteHeapProfile(f); err != nil {
|
if err := pprof.WriteHeapProfile(f); err != nil {
|
||||||
log.Fatalf("could not write memory profile: %v", err)
|
log.Fatalf("could not write memory profile: %v", err)
|
||||||
}
|
}
|
||||||
|
log.Printf("Created %s mem profile\n", filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user