LLVM 20.0.0git
Public Member Functions | List of all members
llvm::xray::LogBuilder Class Reference

The LogBuilder class allows for creating ad-hoc collections of records through the add<...>(...) function. More...

#include "llvm/XRay/FDRLogBuilder.h"

Public Member Functions

template<class R , class... T>
LogBuilderadd (T &&... A)
 
std::vector< std::unique_ptr< Record > > consume ()
 

Detailed 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();

Definition at line 25 of file FDRLogBuilder.h.

Member Function Documentation

◆ add()

template<class R , class... T>
LogBuilder & llvm::xray::LogBuilder::add ( T &&...  A)
inline

Definition at line 29 of file FDRLogBuilder.h.

References A.

◆ consume()

std::vector< std::unique_ptr< Record > > llvm::xray::LogBuilder::consume ( )
inline

Definition at line 34 of file FDRLogBuilder.h.


The documentation for this class was generated from the following file: