• Y
    Add Memory Insight support to utilities · 7d7ee2b6
    Yueh-Hsuan Chiang 提交于
    Summary:
    This patch introduces utilities/memory, which currently includes
    GetApproximateMemoryUsageByType that reports different types of
    rocksdb memory usage given a list of input DBs.
    
    The API also take care of the case where Cache could be shared
    across multiple column families / multiple db instances.
    
    Currently, it reports memory usage of memtable, table-readers
    and cache.
    
    Test Plan: utilities/memory/memory_test.cc
    
    Reviewers: igor, anthony, IslamAbdelRahman, sdong
    
    Reviewed By: sdong
    
    Subscribers: dhruba, leveldb
    
    Differential Revision: https://reviews.facebook.net/D49257
    7d7ee2b6
db_impl.h 33.8 KB