Lines Matching refs:dbs
34 void UpdateUsagesHistory(const std::vector<DB*>& dbs) { in UpdateUsagesHistory() argument
36 ASSERT_OK(GetApproximateMemoryUsageByType(dbs, &usage_by_type)); in UpdateUsagesHistory()
55 void GetCachePointers(const std::vector<DB*>& dbs, in GetCachePointers() argument
59 for (auto* db : dbs) { in GetCachePointers()
84 const std::vector<DB*>& dbs, in GetApproximateMemoryUsageByType() argument
87 GetCachePointers(dbs, &cache_set); in GetApproximateMemoryUsageByType()
89 return MemoryUtil::GetApproximateMemoryUsageByType(dbs, cache_set, in GetApproximateMemoryUsageByType()
99 std::vector<DB*> dbs; in TEST_F() local
116 dbs.push_back(db); in TEST_F()
126 dbs[i]->Put(WriteOptions(), keys_by_db[i].back(), in TEST_F()
129 dbs[i]->Flush(FlushOptions()); in TEST_F()
135 dbs[i]->Get(ReadOptions(), key, &value); in TEST_F()
137 UpdateUsagesHistory(dbs); in TEST_F()
146 delete dbs[i]; in TEST_F()
151 std::vector<DB*> dbs; in TEST_F() local
174 dbs.emplace_back(); in TEST_F()
177 &vec_handles.back(), &dbs.back())); in TEST_F()
184 dbs[i]->Put(WriteOptions(), handle, RandomString(kKeySize), in TEST_F()
186 UpdateUsagesHistory(dbs); in TEST_F()
206 iters.push_back(dbs[i]->NewIterator(ReadOptions())); in TEST_F()
207 dbs[i]->Flush(FlushOptions()); in TEST_F()
211 dbs[i]->Get(ReadOptions(), RandomString(kKeySize), &value); in TEST_F()
214 UpdateUsagesHistory(dbs); in TEST_F()
237 UpdateUsagesHistory(dbs); in TEST_F()
257 delete dbs[i]; in TEST_F()