4 ms·
Yup, there is an upstream issue to improve this: https://github.com/golang/go/issues/44920 https://github.com/golang/go/issues/44920 FWIW I'm planning to work
by felixge 5y ago
Yup, there is an upstream issue to improve this: https://github.com/golang/go/issues/44920 https://github.com/golang/go/issues/44920
FWIW I'm planning to work on the problem from downstream as well by adding more docs here: https://github.com/felixge/go-profiler-notes https://github.com/felixge/go-profiler-notes . I haven't gotten to the mutex profile yet, but I've covered the block profile in great detail. It actually overlaps with the mutex profile for contention, but it tracks Lock() rather than Unlock() which is subtly different like you pointed out!