LLDB mainline
|
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 | |
Stream & | m_s |
TraceDumperOptions | m_options |
bool | m_was_prev_instruction_an_error = false |
Definition at line 113 of file TraceDumper.cpp.
|
inline |
Definition at line 115 of file TraceDumper.cpp.
References lldb_private::Stream::Format(), lldb_private::UserID::GetID(), lldb_private::Thread::GetIndexID(), and m_s.
|
inlineprivate |
Definition at line 250 of file TraceDumper.cpp.
References DumpFunctionCallTree(), DumpSegmentContext(), DumpUntracedContext(), lldb_private::Stream::Format(), lldb_private::TraceDumper::FunctionCall::GetTracedSegments(), lldb_private::TraceDumper::FunctionCall::GetUntracedPrefixSegment(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), and m_s.
Referenced by DumpFunctionCallTree(), and FunctionCallForest().
|
inlineprivate |
Definition at line 205 of file TraceDumper.cpp.
References lldb_private::TraceDumper::SymbolInfo::address, lldb_private::LineEntry::column, lldb_private::SymbolContext::DumpStopContext(), lldb_private::TraceDumper::SymbolInfo::exe_ctx, lldb_private::Stream::Format(), lldb_private::TraceDumper::FunctionCall::TracedSegment::GetFirstInstructionSymbolInfo(), lldb_private::TraceDumper::FunctionCall::TracedSegment::GetLastInstructionSymbolInfo(), lldb_private::TraceDumper::FunctionCall::TracedSegment::GetOwningCall(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::TraceDumper::FunctionCall::IsError(), IsLineEntryValid(), lldb_private::LineEntry::line, lldb_private::SymbolContext::line_entry, m_s, and lldb_private::TraceDumper::SymbolInfo::sc.
Referenced by DumpFunctionCallTree().
|
inlineprivate |
Definition at line 235 of file TraceDumper.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::SymbolContext::function, lldb_private::SymbolContext::GetFunctionName(), GetModuleName(), lldb_private::TraceDumper::FunctionCall::GetSymbolInfo(), lldb_private::TraceDumper::FunctionCall::IsError(), m_s, lldb_private::TraceDumper::SymbolInfo::sc, and lldb_private::SymbolContext::symbol.
Referenced by DumpFunctionCallTree().
|
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.
|
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.
|
inlineoverridevirtual |
Dump a trace item (instruction, error or event).
Implements lldb_private::TraceDumper::OutputWriter.
Definition at line 130 of file TraceDumper.cpp.
References lldb_private::TraceDumper::TraceItem::cpu_id, lldb_private::TraceDumper::TraceItem::error, lldb::eTraceEventCPUChanged, lldb::eTraceEventDisabledHW, lldb::eTraceEventDisabledSW, lldb::eTraceEventHWClockTick, lldb::eTraceEventSyncPoint, lldb_private::TraceDumper::TraceItem::event, lldb_private::TraceCursor::EventKindToString(), lldb_private::Stream::Format(), GetModuleName(), lldb_private::TraceDumper::TraceItem::hw_clock, lldb_private::TraceDumper::TraceItem::id, IsSameInstructionSymbolContext(), lldb_private::TraceDumper::TraceItem::load_address, m_options, m_s, m_was_prev_instruction_an_error, lldb_private::TraceDumper::TraceItem::prev_symbol_info, lldb_private::TraceDumperOptions::show_control_flow_kind, lldb_private::TraceDumperOptions::show_timestamps, lldb_private::TraceDumper::TraceItem::symbol_info, lldb_private::TraceDumper::TraceItem::sync_point_metadata, and lldb_private::TraceDumper::TraceItem::timestamp.
|
private |
Definition at line 277 of file TraceDumper.cpp.
Referenced by TraceItem().
|
private |
Definition at line 276 of file TraceDumper.cpp.
Referenced by DumpFunctionCallTree(), DumpSegmentContext(), DumpUntracedContext(), FunctionCallForest(), NoMoreData(), OutputWriterCLI(), and TraceItem().
|
private |
Definition at line 278 of file TraceDumper.cpp.
Referenced by TraceItem().