[PATCH] D59350: [clangd] Build Dex index after loading all shards in BackgroundIndex.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 14 02:57:26 PDT 2019
hokein updated this revision to Diff 190579.
hokein marked an inline comment as done.
hokein added a comment.
Format the code.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59350/new/
https://reviews.llvm.org/D59350
Files:
clangd/index/Background.cpp
Index: clangd/index/Background.cpp
===================================================================
--- clangd/index/Background.cpp
+++ clangd/index/Background.cpp
@@ -374,7 +374,9 @@
// extra index build.
reset(
IndexedSymbols.buildIndex(IndexType::Heavy, DuplicateHandling::Merge));
- log("BackgroundIndex: rebuilt symbol index.");
+ log("BackgroundIndex: rebuilt symbol index with estimated memory {0} "
+ "bytes.",
+ estimateMemoryUsage());
}
}
@@ -603,8 +605,10 @@
}
}
vlog("Loaded all shards");
- reset(IndexedSymbols.buildIndex(IndexType::Light, DuplicateHandling::Merge));
-
+ reset(IndexedSymbols.buildIndex(IndexType::Heavy, DuplicateHandling::Merge));
+ vlog("BackgroundIndex: built symbol index with estimated memory {0} "
+ "bytes.",
+ estimateMemoryUsage());
return NeedsReIndexing;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59350.190579.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190314/c75ab456/attachment.bin>
More information about the cfe-commits
mailing list