A consumer of trace events.
More...
#include <Trace.h>
A consumer of trace events.
The events are produced by Spans and trace::log. Implmentations of this interface must be thread-safe.
Definition at line 32 of file Trace.h.
◆ ~EventTracer()
virtual clang::clangd::trace::EventTracer::~EventTracer |
( |
| ) |
|
|
virtualdefault |
◆ beginSpan()
virtual Context clang::clangd::trace::EventTracer::beginSpan |
( |
llvm::StringRef |
Name, |
|
|
llvm::json::Object * |
Args |
|
) |
| |
|
pure virtual |
Called when event that has a duration starts.
Name
describes the event. Returns a derived context that will be destroyed when the event ends. Usually implementations will store an object in the returned context whose destructor records the end of the event. The args are *Args, only complete when the event ends.
◆ endSpan()
virtual void clang::clangd::trace::EventTracer::endSpan |
( |
| ) |
|
|
inlinevirtual |
◆ instant()
virtual void clang::clangd::trace::EventTracer::instant |
( |
llvm::StringRef |
Name, |
|
|
llvm::json::Object && |
Args |
|
) |
| |
|
pure virtual |
Called for instant events.
Referenced by endSpan().
The documentation for this class was generated from the following file: