Skip to content

Commit 9d134c1

Browse files
committed
docs: Fix typos, and rephrase the 1st step of the tutorial.
1 parent 12fb5b9 commit 9d134c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/book/src/cronjob-tutorial/pprof-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ While [Pprof][github-repo] is an excellent tool for profiling and debugging, it
2020

2121
## How to use Pprof in your Codebase
2222

23-
1. In your `cmd/main.go` file, specify the `PprofBindAddress` URL field as part of Controller Manager's configurations:
23+
1. In your `cmd/main.go` file, add the following `controller-runtime` manager field to enable the `pprof` endpoints:
2424

2525
```golang
2626
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
@@ -50,15 +50,15 @@ While [Pprof][github-repo] is an excellent tool for profiling and debugging, it
5050
curl -s "http://127.0.0.1:8082/debug/pprof/profile" > ./cpu-profile.out
5151
```
5252
53-
5. Visualize the results onin an interactive dashboard.
53+
5. Visualize the results on an interactive dashboard.
5454
5555
```bash
5656
# Go tool will open a session on port 8080.
5757
# You can change this as per your own need.
5858
go tool pprof -http=:8080 ./cpu-profile.out
5959
```
6060
61-
Visualizaion resutl will vary depending on the deployed workload, and the Controller's behavior.
61+
Visualizaion resutls will vary depending on the deployed workload, and the Controller's behavior.
6262
However, you'll see a dashboard on your browser similar to this one:
6363
6464
![pprof-result-visualization](./images/pprof-result-visualization.png)

0 commit comments

Comments
 (0)