mirror of
https://github.com/versity/versitygw.git
synced 2026-06-07 03:22:37 +00:00
Fixes #359. This adds the pprof listening endpoint when configured. The option requires providing the listening port. Once enabled, pprof debug utilities are provided at this endpoint. For example, adding to following option: --pprof 127.0.0.1:9999 Creates a listener on localhost port 9999. You can then point a browser to http://localhost:9999/debug/pprof/ to get access to the debug utilities. Another useful case is to get goroutine stack traces live with the following: curl 'http://localhost:9999/debug/pprof/goroutine?debug=1'