This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit 32e99dc
Extra
This PR adds extra `pprof` endpoints that we can handle.
So we can profile:
```
# CPU usage
go tool pprof -http=: http://localhost:9999/debug/pprof/profile
# Heap usage
go tool pprof -http=: http://localhost:9999/debug/pprof/heap
# Concurrency profiling
# It requires changing the constant `main.EnableConcurrencyProfiling`
go tool pprof -http=: http://localhost:9999/debug/pprof/mutex
go tool pprof -http=: http://localhost:9999/debug/pprof/block
```
---------
Signed-off-by: Rafał Strzaliński <[email protected]>
Co-authored-by: Przemyslaw Delewski <[email protected]>pprof endpoints (#1031)1 parent 968ed31 commit 32e99dc
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
| |||
0 commit comments