clang-tools 20.0.0git
|
#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.
Namespaces | |
namespace | clang |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
namespace | clang::clangd |
FIXME: Skip testing on windows temporarily due to the different escaping code mode. | |
namespace | 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). | |
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") |
llvm::json::Object Args |
Definition at line 138 of file Trace.cpp.
Referenced by clang::tidy::modernize::addFunctionCallArgs(), clang::tidy::modernize::addPlaceholderArgs(), clang::clangd::declaredType(), findInputFile(), clang::tidy::modernize::findPositionOfPlaceholderUse(), clang::clangd::fromJSON(), clang::tidy::modernize::getForwardedArgumentList(), Modularize::getMacroExpandedString(), getModularizeArgumentsAdjuster(), clang::clangd::HasSubsequence(), clang::tidy::modernize::isFixitSupported(), clang::tidy::modernize::isPlaceHolderIndexRepeated(), clang::pp_trace::PPCallbacksTracker::MacroExpands(), main(), clang::clangd::trace::makeSpanContext(), clang::tidy::ClangTidyPluginAction::ParseArgs(), clang::include_fixer::ClangIncludeFixerPluginAction::ParseArgs(), clang::clangd::printArgv(), clang::clangd::printTemplateSpecializationArgs(), clang::clangd::ArgStripper::process(), and clang::tidy::runClangTidy().