Skip to content

Commit 914cebf

Browse files
author
Mario Macias
authored
Update profiling.md
1 parent ccb7add commit 914cebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/profiling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
Example:
4545

4646
```
47-
curl "http://localhost:6060/debug/pprof/trace?duration=20" -o trace20s
47+
curl "http://localhost:6060/debug/pprof/trace?seconds=20" -o trace20s
4848
curl "http://localhost:6060/debug/pprof/profile?duration=20" -o profile20s
4949
curl "http://localhost:6060/debug/pprof/heap?gc" -o heap
5050
curl "http://localhost:6060/debug/pprof/allocs" -o allocs
5151
curl "http://localhost:6060/debug/pprof/goroutine" -o goroutine
5252
```
5353

54-
4. Use `go tool pprof` to dig into the profiles (`go tool trace` for the `trace` profile)
54+
4. Use `go tool pprof` to dig into the profiles (`go tool trace` for the `trace` profile)

0 commit comments

Comments
 (0)