clang-tools  14.0.0git
Namespaces | Functions
Trace.cpp File Reference
#include "support/Trace.h"
#include "support/Context.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/FormatProviders.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Threading.h"
#include <atomic>
#include <chrono>
#include <memory>
#include <mutex>
Include dependency graph for Trace.cpp:

Go to the source code of this file.

Namespaces

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

Functions

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). More...
 
std::unique_ptr< EventTracer > clang::clangd::trace::createCSVMetricTracer (llvm::raw_ostream &OS)
 Create an instance of EventTracer that outputs metric measurements as CSV. More...
 
void clang::clangd::trace::log (const llvm::Twine &Name)
 Records a single instant event, associated with the current thread. More...
 
bool clang::clangd::trace::enabled ()
 Returns true if there is an active tracer. More...
 
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