#include "support/MemoryTree.h"
#include "Trace.h"
#include "llvm/ADT/StringRef.h"
#include <cstddef>
namespace clang {
namespace clangd {
namespace {
size_t traverseTree(const MemoryTree &MT, std::string &ComponentName,
const trace::Metric &Out) { … }
}
MemoryTree &MemoryTree::createChild(llvm::StringRef Name) { … }
const llvm::DenseMap<llvm::StringRef, MemoryTree> &
MemoryTree::children() const { … }
size_t MemoryTree::total() const { … }
void record(const MemoryTree &MT, std::string RootName,
const trace::Metric &Out) { … }
}
}