Commit 2dfb24b
committed
api: fix pprof-address usage
Adding the following line will install handlers under the /debug/pprof/ URL to download live profiles:
```
import _ "net/http/pprof"
```
see: https://golang.org/pkg/net/http/pprof/
https://golang.org/pkg/runtime/pprof/
Signed-off-by: Wang Long <long.wanglong@huawei.com>1 parent 0686d5f commit 2dfb24b
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
0 commit comments