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

Public Member Functions

 OutputWriterJSON (Stream &s, const TraceDumperOptions &options)
 
 ~OutputWriterJSON ()
 
void FunctionCallForest (const std::vector< TraceDumper::FunctionCallUP > &forest) override
 Dump a function call forest.
 
void DumpFunctionCallTree (const TraceDumper::FunctionCall &function_call)
 
void DumpEvent (const TraceDumper::TraceItem &item)
 
void DumpInstruction (const TraceDumper::TraceItem &item)
 
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 Attributes

Streamm_s
 
TraceDumperOptions m_options
 
json::OStream m_j
 

Detailed Description

Definition at line 281 of file TraceDumper.cpp.

Constructor & Destructor Documentation

◆ OutputWriterJSON()

OutputWriterJSON::OutputWriterJSON ( Stream s,
const TraceDumperOptions options 
)
inline

Definition at line 309 of file TraceDumper.cpp.

References m_j.

◆ ~OutputWriterJSON()

OutputWriterJSON::~OutputWriterJSON ( )
inline

Definition at line 316 of file TraceDumper.cpp.

References m_j.

Member Function Documentation

◆ DumpEvent()

void OutputWriterJSON::DumpEvent ( const TraceDumper::TraceItem item)
inline

◆ DumpFunctionCallTree()

void OutputWriterJSON::DumpFunctionCallTree ( const TraceDumper::FunctionCall function_call)
inline

◆ DumpInstruction()

void OutputWriterJSON::DumpInstruction ( const TraceDumper::TraceItem item)
inline

◆ FunctionCallForest()

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

Dump a function call forest.

Implements lldb_private::TraceDumper::OutputWriter.

Definition at line 318 of file TraceDumper.cpp.

References DumpFunctionCallTree(), and m_j.

◆ TraceItem()

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

Member Data Documentation

◆ m_j

json::OStream OutputWriterJSON::m_j
private

◆ m_options

TraceDumperOptions OutputWriterJSON::m_options
private

Definition at line 427 of file TraceDumper.cpp.

Referenced by DumpInstruction(), and TraceItem().

◆ m_s

Stream& OutputWriterJSON::m_s
private

Definition at line 426 of file TraceDumper.cpp.


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