LLDB mainline
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OutputWriterCLI Class Reference
Inheritance diagram for OutputWriterCLI:
Inheritance graph
[legend]

Public Member Functions

 OutputWriterCLI (Stream &s, const TraceDumperOptions &options, Thread &thread)
 
void NoMoreData () override
 Notify this writer that the cursor ran out of data.
 
void FunctionCallForest (const std::vector< TraceDumper::FunctionCallUP > &forest) override
 Dump a function call forest.
 
void TraceItem (const TraceDumper::TraceItem &item) override
 Dump a trace item (instruction, error or event).
 
- Public Member Functions inherited from lldb_private::TraceDumper::OutputWriter
virtual ~OutputWriter ()=default
 
virtual void NoMoreData ()
 Notify this writer that the cursor ran out of data.
 
virtual void TraceItem (const TraceItem &item)=0
 Dump a trace item (instruction, error or event).
 
virtual void FunctionCallForest (const std::vector< FunctionCallUP > &forest)=0
 Dump a function call forest.
 

Private Member Functions

void DumpSegmentContext (const TraceDumper::FunctionCall::TracedSegment &segment)
 
void DumpUntracedContext (const TraceDumper::FunctionCall &function_call)
 
void DumpFunctionCallTree (const TraceDumper::FunctionCall &function_call)
 

Private Attributes

Streamm_s
 
TraceDumperOptions m_options
 
bool m_was_prev_instruction_an_error = false
 

Detailed Description

Definition at line 113 of file TraceDumper.cpp.

Constructor & Destructor Documentation

◆ OutputWriterCLI()

OutputWriterCLI::OutputWriterCLI ( Stream s,
const TraceDumperOptions options,
Thread thread 
)
inline

Member Function Documentation

◆ DumpFunctionCallTree()

void OutputWriterCLI::DumpFunctionCallTree ( const TraceDumper::FunctionCall function_call)
inlineprivate

◆ DumpSegmentContext()

void OutputWriterCLI::DumpSegmentContext ( const TraceDumper::FunctionCall::TracedSegment segment)
inlineprivate

◆ DumpUntracedContext()

void OutputWriterCLI::DumpUntracedContext ( const TraceDumper::FunctionCall function_call)
inlineprivate

◆ FunctionCallForest()

void OutputWriterCLI::FunctionCallForest ( const std::vector< TraceDumper::FunctionCallUP > &  forest)
inlineoverridevirtual

Dump a function call forest.

Implements lldb_private::TraceDumper::OutputWriter.

Definition at line 122 of file TraceDumper.cpp.

References DumpFunctionCallTree(), lldb_private::Stream::Format(), and m_s.

◆ NoMoreData()

void OutputWriterCLI::NoMoreData ( )
inlineoverridevirtual

Notify this writer that the cursor ran out of data.

Reimplemented from lldb_private::TraceDumper::OutputWriter.

Definition at line 120 of file TraceDumper.cpp.

References m_s.

◆ TraceItem()

void OutputWriterCLI::TraceItem ( const TraceDumper::TraceItem item)
inlineoverridevirtual

Member Data Documentation

◆ m_options

TraceDumperOptions OutputWriterCLI::m_options
private

Definition at line 277 of file TraceDumper.cpp.

Referenced by TraceItem().

◆ m_s

Stream& OutputWriterCLI::m_s
private

◆ m_was_prev_instruction_an_error

bool OutputWriterCLI::m_was_prev_instruction_an_error = false
private

Definition at line 278 of file TraceDumper.cpp.

Referenced by TraceItem().


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