LLDB  mainline
Public Member Functions | Protected Attributes | Friends | List of all members
lldb::SBTraceOptions Class Reference

#include <SBTraceOptions.h>

Collaboration diagram for lldb::SBTraceOptions:
Collaboration graph
[legend]

Public Member Functions

 SBTraceOptions ()
 
lldb::TraceType getType () const
 
uint64_t getTraceBufferSize () const
 
lldb::SBStructuredData getTraceParams (lldb::SBError &error)
 The trace parameters consist of any custom parameters apart from the generic parameters such as TraceType, trace_buffer_size and meta_data_buffer_size. More...
 
uint64_t getMetaDataBufferSize () const
 
void setTraceParams (lldb::SBStructuredData &params)
 SBStructuredData is meant to hold any custom parameters apart from meta buffer size and trace size. More...
 
void setType (lldb::TraceType type)
 
void setTraceBufferSize (uint64_t size)
 
void setMetaDataBufferSize (uint64_t size)
 
void setThreadID (lldb::tid_t thread_id)
 
lldb::tid_t getThreadID ()
 
 operator bool () const
 
bool IsValid ()
 

Protected Attributes

lldb::TraceOptionsSP m_traceoptions_sp
 

Friends

class SBProcess
 
class SBTrace
 

Detailed Description

Definition at line 16 of file SBTraceOptions.h.

Constructor & Destructor Documentation

◆ SBTraceOptions()

SBTraceOptions::SBTraceOptions ( )

Definition at line 22 of file SBTraceOptions.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

Member Function Documentation

◆ getMetaDataBufferSize()

uint64_t SBTraceOptions::getMetaDataBufferSize ( ) const

Definition at line 60 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ getThreadID()

lldb::tid_t SBTraceOptions::getThreadID ( )

Definition at line 125 of file SBTraceOptions.cpp.

References LLDB_INVALID_THREAD_ID, and LLDB_RECORD_METHOD_NO_ARGS.

◆ getTraceBufferSize()

uint64_t SBTraceOptions::getTraceBufferSize ( ) const

Definition at line 36 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ getTraceParams()

lldb::SBStructuredData SBTraceOptions::getTraceParams ( lldb::SBError error)

The trace parameters consist of any custom parameters apart from the generic parameters such as TraceType, trace_buffer_size and meta_data_buffer_size.

The returned parameters would be formatted as a JSON Dictionary.

Definition at line 45 of file SBTraceOptions.cpp.

References lldb::SBError::Clear(), LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, lldb::SBStructuredData::m_impl_up, and lldb::SBError::SetErrorString().

◆ getType()

lldb::TraceType SBTraceOptions::getType ( ) const

Definition at line 28 of file SBTraceOptions.cpp.

References lldb::eTraceTypeNone, and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ IsValid()

bool SBTraceOptions::IsValid ( )

Definition at line 105 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

◆ operator bool()

SBTraceOptions::operator bool ( ) const
explicit

Definition at line 109 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ setMetaDataBufferSize()

void SBTraceOptions::setMetaDataBufferSize ( uint64_t  size)

Definition at line 97 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD.

◆ setThreadID()

void SBTraceOptions::setThreadID ( lldb::tid_t  thread_id)

Definition at line 117 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD.

◆ setTraceBufferSize()

void SBTraceOptions::setTraceBufferSize ( uint64_t  size)

Definition at line 89 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD.

◆ setTraceParams()

void SBTraceOptions::setTraceParams ( lldb::SBStructuredData params)

SBStructuredData is meant to hold any custom parameters apart from meta buffer size and trace size.

They should be formatted as a JSON Dictionary.

Definition at line 69 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD, and lldb::SBStructuredData::m_impl_up.

◆ setType()

void SBTraceOptions::setType ( lldb::TraceType  type)

Definition at line 82 of file SBTraceOptions.cpp.

References LLDB_RECORD_METHOD.

Friends And Related Function Documentation

◆ SBProcess

friend class SBProcess
friend

Definition at line 52 of file SBTraceOptions.h.

◆ SBTrace

friend class SBTrace
friend

Definition at line 53 of file SBTraceOptions.h.

Member Data Documentation

◆ m_traceoptions_sp

lldb::TraceOptionsSP lldb::SBTraceOptions::m_traceoptions_sp
protected

Definition at line 55 of file SBTraceOptions.h.

Referenced by lldb::SBTrace::GetTraceConfig(), and lldb::SBProcess::StartTrace().


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