Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clangd/support/
DMemoryTree.h32 struct MemoryTree { struct
35 MemoryTree(llvm::BumpPtrAllocator *DetailAlloc = nullptr)
41 MemoryTree &child(llvm::StringLiteral Name) { return createChild(Name); } in child() argument
43 MemoryTree(const MemoryTree &) = delete;
44 MemoryTree &operator=(const MemoryTree &) = delete; argument
46 MemoryTree(MemoryTree &&) = default;
47 MemoryTree &operator=(MemoryTree &&) = default; argument
53 MemoryTree &detail(llvm::StringRef Name) { in detail() argument
61 const llvm::DenseMap<llvm::StringRef, MemoryTree> &children() const; argument
72 MemoryTree &createChild(llvm::StringRef Name); argument
[all …]
DMemoryTree.cpp12 size_t traverseTree(const MemoryTree &MT, std::string &ComponentName, in traverseTree()
29 MemoryTree &MemoryTree::createChild(llvm::StringRef Name) { in createChild()
34 const llvm::DenseMap<llvm::StringRef, MemoryTree> &
35 MemoryTree::children() const { in children()
39 size_t MemoryTree::total() const { in total()
46 void record(const MemoryTree &MT, std::string RootName, in record()
DCMakeLists.txt25 MemoryTree.cpp
/external/llvm-project/clang-tools-extra/clangd/unittests/support/
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()
/external/llvm-project/clang-tools-extra/clangd/index/
DFileIndex.h91 void profile(MemoryTree &MT) const;
122 void profile(MemoryTree &MT) const;
DBackground.h177 void profile(MemoryTree &MT) const;
DFileIndex.cpp390 void FileSymbols::profile(MemoryTree &MT) const { in profile()
478 void FileIndex::profile(MemoryTree &MT) const { in profile()
DBackground.cpp418 void BackgroundIndex::profile(MemoryTree &MT) const { in profile()
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/support/
DBUILD.gn17 "MemoryTree.cpp",
/external/llvm-project/clang-tools-extra/clangd/
DClangdLSPServer.h74 void profile(MemoryTree &MT) const;
158 void onMemoryUsage(const NoParams &, Callback<MemoryTree>);
DTUScheduler.h316 void profile(MemoryTree &MT) const;
DClangdServer.h349 void profile(MemoryTree &MT) const;
DClangdLSPServer.cpp1292 MemoryTree MT; in maybeExportMemoryProfile()
1440 Callback<MemoryTree> Reply) { in onMemoryUsage()
1442 MemoryTree MT(&DetailAlloc); in onMemoryUsage()
1526 void ClangdLSPServer::profile(MemoryTree &MT) const { in profile()
DClangdServer.cpp880 void ClangdServer::profile(MemoryTree &MT) const { in profile()
DProtocol.h1687 llvm::json::Value toJSON(const MemoryTree &MT);
DTUScheduler.cpp1433 void TUScheduler::profile(MemoryTree &MT) const { in profile()
DProtocol.cpp1361 llvm::json::Value toJSON(const MemoryTree &MT) { in toJSON()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DFileIndexTests.cpp697 MemoryTree MT(&Alloc); in TEST()
719 MemoryTree MT(&Alloc); in TEST()
DBackgroundIndexTests.cpp887 MemoryTree MT(&Alloc); in TEST()
DClangdTests.cpp1256 MemoryTree MT(&Alloc); in TEST()