An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 6.3% on proxy.golang.org
Top 0.2% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 0.6% docker downloads on proxy.golang.org

proxy.golang.org : github.com/anacrolix/sync

Package sync is an extension of the stdlib "sync" package. It has extra functionality that helps debug the use of synchronization primitives. The package should be importable in place of "sync". The extra functionality can be enabled by calling Enable() or passing a non-empty PPROF_SYNC environment variable to the process. Several profiles are exposed on the default HTTP muxer (and to "/debug/pprof" when "net/http/pprof" is imported by the process). "lockHolders" lists the stack traces of goroutines that called Mutex.Lock that haven't subsequently been Unlocked. "lockBlockers" contains goroutines that are waiting to obtain locks. "/debug/lockTimes" or PrintLockTimes() shows the longest time a lock is held for each stack trace. Note that currently RWMutex is treated like a Mutex when the package is enabled.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/anacrolix/sync
Keywords: deadlock-detection , go , mutex , pprof
License: MPL-2.0
Latest release: 22 days ago
First release: almost 7 years ago
Namespace: github.com/anacrolix
Dependent packages: 379
Dependent repositories: 383
Stars: 7 on GitHub
Forks: 0 on GitHub
Docker dependents: 25
Docker downloads: 535,293
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/anacrolix
Last synced: 22 days ago

    Loading...
    Readme
    Loading...