llvm::xray::LogBuilder

Builds ad-hoc collections of FDR records.

Synopsis

Declared in <llvm/XRay/FDRLogBuilder.h>

class LogBuilder;

Description

The LogBuilder class allows for creating ad-hoc collections of records through the add<...>(...) function. An example use of this API is in crafting arbitrary sequences of records:

auto Records = LogBuilder() .add<BufferExtents>(256) .add<NewBufferRecord>(1) .consume();

Member Functions

NameDescription
add Appends a newly constructed record of type R to the collection.
consume Moves ownership of the collected records out of this builder.