ioeric added a comment. The benchmark change looks fine to me. But I'm not very familiar with the trick, so I'll let Sam (who proposed the idea as you mentioned), stamp the patch.
================ Comment at: clang-tools-extra/clangd/index/dex/Dex.h:75 + URISchemes); + vlog("Built Dex with estimated memory usage {0} bytes.", + Index->estimateMemoryUsage()); ---------------- It's a bit strange to log this in the constructor. And we only do the logging for one of the constructors. Maybe just have the user log the mem usage when they want? https://reviews.llvm.org/D52047 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits