Add a mutex timing flag to diag_bitmap
The MTX_UNLOCK debug lines will log for how long this thread held the lock. The MTX_LOCKWAIT debug lines will log how long the thread waited for the lock to be acquired. Bugs: Threads unlocking the mutex as part of pthread_cond_wait will not update the time of lock value for that mutex on pthread_cond_wait entry.
Showing
Please register or sign in to comment