kubo/core/corehttp
Jakub Sztandera 50fffa2973 pprof: create HTTP endpoint for setting MutexProfileFraction
Allows to dynamically change the MutexProfileFraction to enable and
disable mutex profiling. It should be very useful for detecting
deadlocks, lock contention and general concurrency problems.

How to use:
To enable run: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=10
To disable: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=0'

Fraction defines which fraction of events will be profiled. Higher it is
the lower performance impact but less reliable the result.

To fetch the result use:
go tool pprof $PATH_TO_IPFS_BIN http://localhost:5001/debug/pprof/mutex

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-26 21:24:49 +02:00
..
commands.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
corehttp.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
gateway_handler.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
gateway_indexPage.go gateway: bring back dir-index-html assets 2016-11-03 00:38:32 +01:00
gateway_test.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
gateway.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
ipns_hostname.go correctly handle multi-hop dnslink resolution 2018-07-07 00:18:30 -07:00
logs.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
metrics_test.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
metrics.go gx update deps 2018-07-23 11:49:43 -07:00
mutex_profile.go pprof: create HTTP endpoint for setting MutexProfileFraction 2018-09-26 21:24:49 +02:00
option_test.go move version.go to top level package 2018-08-09 11:01:10 +02:00
redirect.go corehttp: add net.Listener to ServeOption 2015-08-02 08:16:51 +02:00
webui.go Add trailing comma 2017-12-02 12:05:55 +00:00