Details
Details
- Reviewers
sammccall - Commits
- rGc9d2876da95c: [clangd] Add a metric for tracking memory usage
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/support/MemoryTree.h | ||
---|---|---|
68 | can we make this a non-member function and take the metric to write into as a parameter? Putting this here for reuse seems OK to me but it's not an essential part of MemoryTree itself. (I know we have one already for fallback latency recording, but that seems much costlier to avoid as there are many callsites. Here we expect... 2?) |
can we make this a non-member function and take the metric to write into as a parameter?
Putting this here for reuse seems OK to me but it's not an essential part of MemoryTree itself.
In particular I'd like to avoid baking magic metrics into support/.
(I know we have one already for fallback latency recording, but that seems much costlier to avoid as there are many callsites. Here we expect... 2?)