This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache
ClosedPublic

Authored by kadircet on Sep 28 2020, 6:39 AM.

Details

Summary

File-granular information is considered details.

Depends on D88411

Diff Detail

Event Timeline

kadircet created this revision.Sep 28 2020, 6:39 AM
kadircet requested review of this revision.Sep 28 2020, 6:39 AM
sammccall added inline comments.Oct 6 2020, 2:57 AM
clang-tools-extra/clangd/TUScheduler.cpp
1434

should we group by file instead? The fact that the AST-cache is owned by TUScheduler and not ASTWorker seems like a confusing detail that it might be better to omit

1439

why aren't we also using the UsedBytesAST estimate here, and instead walking through the cache directly?

clang-tools-extra/clangd/TUScheduler.h
316

(raised naming of these functions in another patch, however that ends up let's ensure they match)

kadircet updated this revision to Diff 296691.Oct 7 2020, 8:31 AM
kadircet marked 3 inline comments as done.
  • Rename attachMemoryUsage to profile
  • Group by filename, rather than ast_cache vs preamble
  • Make use of UsedBytesAST rather than profiling IdleASTs
  • Rebase
sammccall accepted this revision.Oct 12 2020, 6:16 AM
This revision is now accepted and ready to land.Oct 12 2020, 6:16 AM
This revision was landed with ongoing or failed builds.Oct 12 2020, 6:27 AM
This revision was automatically updated to reflect the committed changes.