Home
last modified time | relevance | path

Searched refs:MemoryTree (Results 1 – 21 of 21) sorted by relevance

/llvm-project/clang-tools-extra/clangd/support/
H A DMemoryTree.h30 struct MemoryTree { struct
33 MemoryTree(llvm::BumpPtrAllocator *DetailAlloc = nullptr)
39 MemoryTree &child(llvm::StringLiteral Name) { return createChild(Name); } in child() argument
41 MemoryTree(const MemoryTree &) = delete;
42 MemoryTree &operator=(const MemoryTree &) = delete; argument
44 MemoryTree(MemoryTree &&) = default;
45 MemoryTree &operator=(MemoryTree &&) = default; argument
51 MemoryTree &detail(llvm::StringRef Name) { in detail() argument
59 const llvm::DenseMap<llvm::StringRef, MemoryTree> &children() const; argument
70 MemoryTree &createChild(llvm::StringRef Name); argument
[all …]
H A DMemoryTree.cpp19 size_t traverseTree(const MemoryTree &MT, std::string &ComponentName, in traverseTree()
36 MemoryTree &MemoryTree::createChild(llvm::StringRef Name) { in createChild()
41 const llvm::DenseMap<llvm::StringRef, MemoryTree> &
42 MemoryTree::children() const { in children()
46 size_t MemoryTree::total() const { in total()
53 void record(const MemoryTree &MT, std::string RootName, in record()
H A DCMakeLists.txt27 MemoryTree.cpp
/llvm-project/clang-tools-extra/clangd/unittests/support/
H A DMemoryTreeTests.cpp30 TEST(MemoryTree, Basics) { in TEST() argument
31 MemoryTree MT; in TEST()
49 TEST(MemoryTree, DetailedNodesWithoutDetails) { in TEST() argument
50 MemoryTree MT; in TEST()
61 TEST(MemoryTree, DetailedNodesWithDetails) { in TEST() argument
63 MemoryTree MT(&Alloc); in TEST()
80 TEST(MemoryTree, Record) { in TEST() argument
85 auto AddNodes = [](MemoryTree Root) { in TEST()
106 record(AddNodes(MemoryTree(&Alloc)), "root", OutMetric); in TEST()
/llvm-project/clang-tools-extra/clangd/index/
H A DFileIndex.h26 #include "support/MemoryTree.h"
90 void profile(MemoryTree &MT) const;
125 void profile(MemoryTree &MT) const;
H A DBackground.h19 #include "support/MemoryTree.h"
184 void profile(MemoryTree &MT) const;
H A DFileIndex.cpp25 #include "support/MemoryTree.h"
403 void FileSymbols::profile(MemoryTree &MT) const { in profile()
496 void FileIndex::profile(MemoryTree &MT) const { in profile()
H A DBackground.cpp423 void BackgroundIndex::profile(MemoryTree &MT) const { in profile()
/llvm-project/utils/bazel/llvm-project-overlay/clang-tools-extra/clangd/
H A DBUILD.bazel43 "support/MemoryTree.cpp",
59 "support/MemoryTree.h",
/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/support/
H A DBUILD.gn20 "MemoryTree.cpp",
/llvm-project/clang-tools-extra/clangd/
H A DClangdLSPServer.h19 #include "support/MemoryTree.h"
86 void profile(MemoryTree &MT) const;
180 void onMemoryUsage(const NoParams &, Callback<MemoryTree>);
H A DTUScheduler.h18 #include "support/MemoryTree.h"
360 void profile(MemoryTree &MT) const;
H A DClangdServer.h30 #include "support/MemoryTree.h"
470 void profile(MemoryTree &MT) const;
H A DClangdLSPServer.cpp26 #include "support/MemoryTree.h"
1449 MemoryTree MT;
1630 Callback<MemoryTree> Reply) {
1632 MemoryTree MT(&DetailAlloc); in ClangdLSPServer()
1749 void ClangdLSPServer::profile(MemoryTree &MT) const { in getDiagRef()
H A DProtocol.h28 #include "support/MemoryTree.h"
1992 llvm::json::Value toJSON(const MemoryTree &MT);
H A DClangdServer.cpp35 #include "support/MemoryTree.h"
1172 void ClangdServer::profile(MemoryTree &MT) const {
H A DTUScheduler.cpp61 #include "support/MemoryTree.h"
1864 void TUScheduler::profile(MemoryTree &MT) const { in profile()
H A DProtocol.cpp1677 llvm::json::Value toJSON(const MemoryTree &MT) { in operator <<()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DFileIndexTests.cpp726 MemoryTree MT(&Alloc); in TEST()
748 MemoryTree MT(&Alloc); in TEST()
H A DBackgroundIndexTests.cpp908 MemoryTree MT(&Alloc); in TEST()
H A DClangdTests.cpp21 #include "support/MemoryTree.h"
1256 MemoryTree MT(&Alloc); in TEST()