Builds ad-hoc collections of FDR records.
Declared in <llvm/XRay/FDRLogBuilder.h>
class LogBuilder;
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();
| Name | Description |
|---|---|
add | Appends a newly constructed record of type R to the collection. |
consume | Moves ownership of the collected records out of this builder. |