clang-tools 17.0.0git
Namespaces | Functions
Trace.cpp File Reference
#include "support/Trace.h"
#include "support/Context.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Threading.h"
#include <atomic>
#include <chrono>
#include <memory>
#include <mutex>
#include <optional>

Go to the source code of this file.


namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::clangd
namespace  clang::clangd::trace


std::unique_ptr< EventTracer > clang::clangd::trace::createJSONTracer (llvm::raw_ostream &OS, bool Pretty=false)
 Create an instance of EventTracer that produces an output in the Trace Event format supported by Chrome's trace viewer (chrome://tracing).
std::unique_ptr< EventTracer > clang::clangd::trace::createCSVMetricTracer (llvm::raw_ostream &OS)
 Create an instance of EventTracer that outputs metric measurements as CSV.
void clang::clangd::trace::log (const llvm::Twine &Name)
 Records a single instant event, associated with the current thread.
bool clang::clangd::trace::enabled ()
 Returns true if there is an active tracer.
static std::pair< Context, llvm::json::Object * > clang::clangd::trace::makeSpanContext (llvm::Twine Name, const Metric &LatencyMetric)
constexpr Metric clang::clangd::trace::SpanLatency ("span_latency", Metric::Distribution, "span_name")

Variable Documentation

◆ Args

llvm::json::Object Args