• Y
    Add a counter for collecting the wait time on db mutex. · 181191a1
    Yueh-Hsuan Chiang 提交于
    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
    181191a1
db_impl_debug.cc 4.4 KB