mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated Diagnostics (markdown)
parent
7b3a30e2bf
commit
926ffc1f4f
@ -72,8 +72,10 @@ Go will soon allow users to attach [context-scoped labels](https://github.com/go
|
||||
|
||||
|
||||
**Can I serve the profiler handlers (/debug/proof/…) on a different path and port?**
|
||||
Yes! net/http/pprof package registers its handlers to the default mux by default. But, you can also register them yourself by using the handlers exported from the package.
|
||||
For example, the following example will serve the pprof.Profile handler on :7777 at /pprof/profile:
|
||||
|
||||
Yes! `net/http/pprof` package registers its handlers to the default mux by default. But, you can also register them yourself by using the handlers exported from the package.
|
||||
|
||||
For example, the following example will serve the `pprof.Profile` handler on :7777 at /pprof/profile:
|
||||
|
||||
```
|
||||
mux := http.NewServeMux()
|
||||
|
Loading…
x
Reference in New Issue
Block a user