[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 7 02:53:50 PDT 2018


sammccall added inline comments.


================
Comment at: clang-tools-extra/clangd/index/FileIndex.cpp:131
+  size_t StorageSize = 0;
+  for (const auto &Slab : SymbolSlabs)
+    StorageSize += Slab->bytes();
----------------
also the refslabs and refsstorage


https://reviews.llvm.org/D51539





More information about the cfe-commits mailing list