Home
last modified time | relevance | path

Searched refs:CacheSimulator (Results 1 – 3 of 3) sorted by relevance

/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator.h102 class CacheSimulator {
104 CacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache,
106 virtual ~CacheSimulator() = default;
108 CacheSimulator(const CacheSimulator&) = delete;
109 CacheSimulator& operator=(const CacheSimulator&) = delete;
110 CacheSimulator(CacheSimulator&&) = delete;
111 CacheSimulator& operator=(CacheSimulator&&) = delete;
128 class PrioritizedCacheSimulator : public CacheSimulator {
132 : CacheSimulator(std::move(ghost_cache), sim_cache) {} in PrioritizedCacheSimulator()
215 std::vector<std::shared_ptr<CacheSimulator>>>&
[all …]
Dcache_simulator.cc30 CacheSimulator::CacheSimulator(std::unique_ptr<GhostCache>&& ghost_cache, in CacheSimulator() function in ROCKSDB_NAMESPACE::CacheSimulator
34 void CacheSimulator::Access(const BlockCacheTraceRecord& access) { in Access()
205 std::shared_ptr<CacheSimulator> sim_cache; in InitializeCaches()
216 sim_cache = std::make_shared<CacheSimulator>( in InitializeCaches()
Dcache_simulator_test.cc110 TEST_F(CacheSimulatorTest, CacheSimulator) { in TEST_F() argument
117 std::unique_ptr<CacheSimulator> cache_simulator( in TEST_F()
118 new CacheSimulator(nullptr, sim_cache)); in TEST_F()
149 std::unique_ptr<CacheSimulator> cache_simulator(new CacheSimulator( in TEST_F()