Yueh-Hsuan Chiang 181191a1e4 Add a counter for collecting the wait time on db mutex.
Summary:
Add a counter for collecting the wait time on db mutex.
Also add MutexWrapper and CondVarWrapper for measuring wait time.

Test Plan:
./db_test
export ROCKSDB_TESTS=MutexWaitStats
./db_test

verify stats output using db_bench
make clean
make release
./db_bench --statistics=1 --benchmarks=fillseq,readwhilewriting --num=10000 --threads=10

Sample output:
    rocksdb.db.mutex.wait.micros COUNT : 7546866

Reviewers: MarkCallaghan, rven, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D32787
2015-02-04 21:39:45 -08:00
..
2014-10-31 11:59:54 -07:00
2014-09-04 16:18:36 -07:00
2015-02-04 16:04:51 -08:00
2015-02-04 16:04:51 -08:00
2015-01-21 18:23:12 -08:00
2015-01-26 11:48:07 -08:00
2014-12-22 12:04:45 +01:00
2014-01-27 14:49:10 -08:00
2015-01-13 12:27:28 -08:00
2014-11-06 11:14:28 -08:00
2015-01-29 18:22:43 -08:00
2014-11-06 11:14:28 -08:00
2014-11-06 11:14:28 -08:00
2015-02-04 16:04:51 -08:00
2014-10-31 11:59:54 -07:00
2015-02-04 16:04:51 -08:00
2015-01-23 17:35:12 -08:00
2014-11-10 17:39:38 -05:00
2014-09-13 14:14:10 -07:00
2014-09-12 16:23:58 -07:00