Skip to content

Commit

Permalink
return dot
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk committed Sep 29, 2024
1 parent fac286f commit 905d264
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 3 additions & 1 deletion internal/erigon_node/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 905d264

Please sign in to comment.