Skip to content

Commit

Permalink
docs: Add notes on using pprof for development (#11690)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan (Terry) Tang <[email protected]>
  • Loading branch information
terrytangyuan authored Aug 29, 2023
1 parent 18820c3 commit f00b6ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ natively
OpenAPI
p.m.
params
pprof
pre-commit
rc2
repo
Expand Down
8 changes: 8 additions & 0 deletions docs/running-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ git commit --signoff -m 'feat: Added a new feature. Fixes #1234'
have checked out your code into `$GOPATH/src/github.com/argoproj/argo-workflows`.
* If you encounter "out of heap" issues when building UI through Docker, please validate resources allocated to Docker.
Compilation may fail if allocated RAM is less than 4Gi.
* To start profiling with [`pprof`](https://go.dev/blog/pprof), pass `ARGO_PPROF=true` when starting the controller locally.
Then run the following:

```bash
go tool pprof http://localhost:6060/debug/pprof/profile # 30-second CPU profile
go tool pprof http://localhost:6060/debug/pprof/heap # heap profile
go tool pprof http://localhost:6060/debug/pprof/block # goroutine blocking profile
```

## Using Multiple Terminals

Expand Down

0 comments on commit f00b6ff

Please sign in to comment.