rocksdb/utilities/simulator_cache
haoyuhuang 9f0bd56889 Cache simulator: Refactor the cache simulator so that we can add alternative policies easily (#5517)
Summary:
This PR creates cache_simulator.h file. It contains a CacheSimulator that runs against a block cache trace record. We can add alternative cache simulators derived from CacheSimulator later. For example, this PR adds a PrioritizedCacheSimulator that inserts filter/index/uncompressed dictionary blocks with high priority.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5517

Test Plan: make clean && COMPILE_WITH_ASAN=1 make check -j32

Differential Revision: D16043689

Pulled By: HaoyuHuang

fbshipit-source-id: 65f28ed52b866ffb0e6eceffd7f9ca7c45bb680d
2019-07-01 12:46:32 -07:00
..
cache_simulator.cc Cache simulator: Refactor the cache simulator so that we can add alternative policies easily (#5517) 2019-07-01 12:46:32 -07:00
cache_simulator.h Cache simulator: Refactor the cache simulator so that we can add alternative policies easily (#5517) 2019-07-01 12:46:32 -07:00
sim_cache_test.cc Per-thread unique test db names (#4135) 2018-07-13 17:27:39 -07:00
sim_cache.cc Export Cache::GetCharge (#5476) 2019-06-18 17:35:41 -07:00