kubo/cmd/ipfs
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
..
dist Fix typo of sudo install command 2018-05-06 19:09:43 +08:00
util Merge pull request #5496 from rob-deutsch/fix/5495 2018-09-25 05:05:20 +00:00
.gitignore make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00
daemon.go pprof: create HTTP endpoint for setting MutexProfileFraction 2018-09-26 21:24:49 +02:00
dnsresolve_test.go main: make --api option resolve hostnames via dns (#5249) 2018-08-22 18:18:30 -07:00
init.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
ipfs.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
main.go gx: update go-log go-ipld-cbor 2018-09-24 05:36:29 -07:00
Rules.mk mk: embed CurrentCommit in the right place 2018-09-21 11:52:20 +02:00
runmain_test.go make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00