summaryrefslogtreecommitdiffstats
path: root/mutrace.in
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-09-16 11:38:38 +0100
committerLennart Poettering <lennart@poettering.net>2011-09-19 23:58:23 +0200
commit59008a179aa318b40a10d734b519d12d34ce3a1a (patch)
tree100b9bf2c263ee520b5c0f28fa3bea09d69406e5 /mutrace.in
parent869ffc5409442029c500926ddae5cda82737338e (diff)
Track total contention time for mutexes and rwlocks
This adds the ability to track the total amount of time for which each mutex or rwlock is contended. Effectively, this is the amount of time which is spent blocked inside pthread_mutex_lock() and friends — we don't count time spent inside these functions if the mutex isn't busy, however (i.e. if pthread_mutex_trylock() doesn't return EBUSY). It is possible for the total contention time for a given mutex to exceed the total locked time. This can happen if the OS doesn't re-schedule a thread which is blocked on a mutex until some time after the thread which was holding the mutex unlocks it. This commit replaces the “max.Time[ms]” summary column with a new “cont.Time[ms]” column which lists the total contention time for each mutex. I believe this is more important/useful than the maximum locked time.
Diffstat (limited to 'mutrace.in')
0 files changed, 0 insertions, 0 deletions