Version 1 (modified by simonmar, 3 years ago) (diff)



This is a little tool I came across by Lennart Poettering for profiling pthread mutexes. For each mutex in the program it tells you how many times the mutex was locked, how often there was contention, and the maximum time the mutex was held locked for, amongst other things.

Very useful for diagnosing lock contention in the RTS.