mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
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> |
||
|---|---|---|
| .. | ||
| commands.go | ||
| corehttp.go | ||
| gateway_handler.go | ||
| gateway_indexPage.go | ||
| gateway_test.go | ||
| gateway.go | ||
| ipns_hostname.go | ||
| logs.go | ||
| metrics_test.go | ||
| metrics.go | ||
| mutex_profile.go | ||
| option_test.go | ||
| redirect.go | ||
| webui.go | ||