[PATCH] D51154: [clangd] Log memory usage of DexIndex and MemIndex
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 24 00:54:18 PDT 2018
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/index/FileIndex.cpp:123
+ size_t Bytes = Index.estimateMemoryUsage();
+ for (const auto &Scheme : URISchemes) {
+ // std::string contains chars with sizeof(char) == 1.
----------------
ioeric wrote:
> I think the URI scheme names should be negligible.
yeah, just drop this I think.
================
Comment at: clang-tools-extra/clangd/index/Index.h:391
+ // FIXME(kbobyrev): Currently, this only returns the size of index itself
+ // excluding the size of actual symbol slab index refers to. It might be
+ // useful to return both.
----------------
it might be useful --> we should include both :-)
https://reviews.llvm.org/D51154
More information about the cfe-commits
mailing list