[#llvm-xray-LogBuilder] = xref:llvm.adoc[llvm]::xref:llvm/xray.adoc[xray]::LogBuilder :relfileprefix: ../../ :mrdocs: Builds ad‐hoc collections of FDR records. == Synopsis Declared in `<llvm/XRay/FDRLogBuilder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:llvm/xray/LogBuilder/add.adoc[`add`] | Appends a newly constructed record of type `R` to the collection. | xref:llvm/xray/LogBuilder/consume.adoc[`consume`] | Moves ownership of the collected records out of this builder. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#