}
void BackgroundIndex::profile(MemoryTree &MT) const {
- IndexedSymbols.profile(MT.child("symbols"));
+ IndexedSymbols.profile(MT.child("slabs"));
// We don't want to mix memory used by index and symbols, so call base class.
MT.child("index").addUsage(SwapIndex::estimateMemoryUsage());
}
}
void FileIndex::profile(MemoryTree &MT) const {
- PreambleSymbols.profile(MT.child("preamble").child("symbols"));
+ PreambleSymbols.profile(MT.child("preamble").child("slabs"));
MT.child("preamble")
.child("index")
.addUsage(PreambleIndex.estimateMemoryUsage());
- MainFileSymbols.profile(MT.child("main_file").child("symbols"));
+ MainFileSymbols.profile(MT.child("main_file").child("slabs"));
MT.child("main_file")
.child("index")
.addUsage(MainFileIndex.estimateMemoryUsage());
# CHECK-NEXT: "_self": {{[0-9]+}},
# CHECK-NEXT: "_total": {{[0-9]+}}
# CHECK-NEXT: },
-# CHECK-NEXT: "symbols": {
+# CHECK-NEXT: "slabs": {
# CHECK-NEXT: "{{.*}}main.cpp": {
# CHECK-NEXT: "_self": {{[0-9]+}},
# CHECK-NEXT: "_total": {{[0-9]+}},
# CHECK-NEXT: "_self": {{[0-9]+}},
# CHECK-NEXT: "_total": {{[0-9]+}}
# CHECK-NEXT: },
-# CHECK-NEXT: "symbols": {
+# CHECK-NEXT: "slabs": {
# CHECK-NEXT: "_self": {{[0-9]+}},
# CHECK-NEXT: "_total": {{[0-9]+}}
# CHECK-NEXT: }
MemoryTree MT(&Alloc);
Idx.profile(MT);
ASSERT_THAT(MT.children(),
- UnorderedElementsAre(Pair("symbols", _), Pair("index", _)));
+ UnorderedElementsAre(Pair("slabs", _), Pair("index", _)));
}
} // namespace clangd
UnorderedElementsAre(Pair("preamble", _), Pair("main_file", _)));
ASSERT_THAT(MT.child("preamble").children(),
- UnorderedElementsAre(Pair("index", _), Pair("symbols", _)));
+ UnorderedElementsAre(Pair("index", _), Pair("slabs", _)));
ASSERT_THAT(MT.child("main_file").children(),
- UnorderedElementsAre(Pair("index", _), Pair("symbols", _)));
+ UnorderedElementsAre(Pair("index", _), Pair("slabs", _)));
ASSERT_THAT(MT.child("preamble").child("index").total(), Gt(0U));
ASSERT_THAT(MT.child("main_file").child("index").total(), Gt(0U));