LLDB mainline
|
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 | |
Stream & | m_s |
TraceDumperOptions | m_options |
json::OStream | m_j |
Definition at line 281 of file TraceDumper.cpp.
|
inline |
Definition at line 309 of file TraceDumper.cpp.
References m_j.
|
inline |
Definition at line 316 of file TraceDumper.cpp.
References m_j.
|
inline |
Definition at line 355 of file TraceDumper.cpp.
References lldb_private::TraceDumper::TraceItem::cpu_id, lldb::eTraceEventCPUChanged, lldb::eTraceEventDisabledHW, lldb::eTraceEventDisabledSW, lldb::eTraceEventHWClockTick, lldb::eTraceEventSyncPoint, lldb_private::TraceDumper::TraceItem::event, lldb_private::TraceCursor::EventKindToString(), lldb_private::TraceDumper::TraceItem::hw_clock, m_j, and lldb_private::TraceDumper::TraceItem::sync_point_metadata.
|
inline |
Definition at line 325 of file TraceDumper.cpp.
References DumpFunctionCallTree(), lldb_private::TraceDumper::FunctionCall::GetTracedSegments(), lldb_private::TraceDumper::FunctionCall::GetUntracedPrefixSegment(), and m_j.
Referenced by DumpFunctionCallTree(), and FunctionCallForest().
|
inline |
Definition at line 373 of file TraceDumper.cpp.
References GetModuleName(), lldb_private::Instruction::GetNameForInstructionControlFlowKind(), IsLineEntryValid(), lldb_private::TraceDumper::TraceItem::load_address, m_j, m_options, lldb_private::TraceDumperOptions::show_control_flow_kind, lldb_private::TraceDumper::TraceItem::symbol_info, and ToOptionalString().
|
inlineoverridevirtual |
Dump a function call forest.
Implements lldb_private::TraceDumper::OutputWriter.
Definition at line 318 of file TraceDumper.cpp.
References DumpFunctionCallTree(), and m_j.
|
inlineoverridevirtual |
Dump a trace item (instruction, error or event).
Implements lldb_private::TraceDumper::OutputWriter.
Definition at line 406 of file TraceDumper.cpp.
References lldb_private::TraceDumper::TraceItem::error, lldb_private::TraceDumper::TraceItem::event, lldb_private::TraceDumper::TraceItem::id, m_j, m_options, lldb_private::TraceDumperOptions::show_timestamps, and lldb_private::TraceDumper::TraceItem::timestamp.
|
private |
Definition at line 428 of file TraceDumper.cpp.
Referenced by DumpEvent(), DumpFunctionCallTree(), DumpInstruction(), FunctionCallForest(), OutputWriterJSON(), TraceItem(), and ~OutputWriterJSON().
|
private |
Definition at line 427 of file TraceDumper.cpp.
Referenced by DumpInstruction(), and TraceItem().
|
private |
Definition at line 426 of file TraceDumper.cpp.