From 9b1a7732501bd4e8aef6721fa5f519dfa67ffb10 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Thu, 1 Aug 2024 15:32:31 +0100 Subject: [PATCH] fix --- go/enclave/main/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/enclave/main/main.go b/go/enclave/main/main.go index 1235eb8afa..fa798e2241 100644 --- a/go/enclave/main/main.go +++ b/go/enclave/main/main.go @@ -30,7 +30,7 @@ func main() { // temporary code to help identify OOM go func() { for { - heap, err := os.Create(fmt.Sprintf("/heap_%d.pprof", time.Now().UnixMilli())) + heap, err := os.Create(fmt.Sprintf("/data/heap_%d.pprof", time.Now().UnixMilli())) if err != nil { panic(fmt.Errorf("could not open heap profile: %w", err)) } @@ -38,7 +38,7 @@ func main() { if err != nil { panic(fmt.Errorf("could not write CPU profile: %w", err)) } - stack, err := os.Create(fmt.Sprintf("/stack_%d.pprof", time.Now().UnixMilli())) + stack, err := os.Create(fmt.Sprintf("/data/stack_%d.pprof", time.Now().UnixMilli())) if err != nil { panic(fmt.Errorf("could not open stack profile: %w", err)) }