LLVM  8.0.1
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 26 of file FDRLogBuilder.h.

Member Function Documentation

◆ add()

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

Definition at line 30 of file FDRLogBuilder.h.

◆ consume()

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

Definition at line 35 of file FDRLogBuilder.h.


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