13#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_SUPPORT_TESTTRACER_H
14#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_SUPPORT_TESTTRACER_H
17#include "llvm/ADT/StringMap.h"
18#include "llvm/ADT/StringRef.h"
33 llvm::StringRef
Label)
override;
37 llvm::StringRef
Label =
"");
42 llvm::StringMap<llvm::StringMap<std::vector<double>>> Measurements;
A consumer of trace events and measurements.
Sets up a global EventTracer that consumes events produced by Span and trace::log.
A RAII Tracer that can be used by tests.
void record(const Metric &Metric, double Value, llvm::StringRef Label) override
Stores all the measurements to be returned with take later on.
std::vector< double > takeMetric(llvm::StringRef Metric, llvm::StringRef Label="")
Returns recorded measurements for Metric and clears them.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Represents measurements of clangd events, e.g.