Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Aug 1, 2024
1 parent 71387c0 commit 0ebd968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/enclave/main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ 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))
}
err = pprof.WriteHeapProfile(heap)
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))
}
Expand Down

0 comments on commit 0ebd968

Please sign in to comment.