From 905d2640efa532bc34d818bc5ca3ff45abda74ff Mon Sep 17 00:00:00 2001 From: Dmytro Vovk Date: Sun, 29 Sep 2024 15:29:07 +0200 Subject: [PATCH] return dot --- go.mod | 2 +- go.sum | 4 ++-- internal/erigon_node/profile.go | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 97e0af6..a42d6e5 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( ) require ( - github.com/erigontech/erigonwatch v0.1.10 + github.com/erigontech/erigonwatch v0.1.11 github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect diff --git a/go.sum b/go.sum index 1fbf019..01d1df1 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/erigontech/erigonwatch v0.1.10 h1:dnMzaD8T/97B8bgHkPH0QRoWyjuEseXg4tLw4Jp20Hw= -github.com/erigontech/erigonwatch v0.1.10/go.mod h1:8vQ+VjvLu2gkPs8EwdPrOTAAo++WuLuBi54N7NuAF0I= +github.com/erigontech/erigonwatch v0.1.11 h1:1aKqHjbRu9cI9cStoAAstAsWC559F6wyUQ4lKRCo3oU= +github.com/erigontech/erigonwatch v0.1.11/go.mod h1:8vQ+VjvLu2gkPs8EwdPrOTAAo++WuLuBi54N7NuAF0I= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= diff --git a/internal/erigon_node/profile.go b/internal/erigon_node/profile.go index 4fa9706..9dc3e14 100644 --- a/internal/erigon_node/profile.go +++ b/internal/erigon_node/profile.go @@ -25,6 +25,8 @@ func (c *NodeClient) FindProfile(ctx context.Context, profile string) ([]byte, e return nil, fmt.Errorf("Error fetching profile content: %v", err) } + push erigonwatch release and update diagnostics deps + var content ProfileContent if err := json.Unmarshal(result, &content); err != nil { @@ -52,7 +54,7 @@ func (c *NodeClient) FindProfile(ctx context.Context, profile string) ([]byte, e return nil, fmt.Errorf("Error writing to temporary file: %v", err) } - cmd := exec.Command("go", "tool", "pprof", "-png", tempFile.Name()) + cmd := exec.Command("go", "tool", "pprof", "-dot", tempFile.Name()) svgOutput, err := cmd.Output() if err != nil { return nil, fmt.Errorf("Error generating SVG output: %v", err)