LLDB mainline
|
#include <TraceDumper.h>
Public Member Functions | |
TracedSegment (const lldb::TraceCursorSP &cursor_sp, const SymbolInfo &symbol_info, FunctionCall &owning_call) | |
lldb::user_id_t | GetFirstInstructionID () const |
lldb::user_id_t | GetLastInstructionID () const |
const SymbolInfo & | GetFirstInstructionSymbolInfo () const |
const SymbolInfo & | GetLastInstructionSymbolInfo () const |
const FunctionCall & | GetOwningCall () const |
void | AppendInsn (const lldb::TraceCursorSP &cursor_sp, const SymbolInfo &symbol_info) |
Append a new instruction to this segment. | |
FunctionCall & | CreateNestedCall (const lldb::TraceCursorSP &cursor_sp, const SymbolInfo &symbol_info) |
Create a nested call at the end of this segment. | |
void | IfNestedCall (std::function< void(const FunctionCall &function_call)> callback) const |
Executed the given callback if there's a nested call at the end of this segment. |
Private Member Functions | |
TracedSegment (const TracedSegment &)=delete | |
TracedSegment & | operator= (TracedSegment const &) |
Private Attributes | |
FunctionCallUP | m_nested_call |
An optional nested call starting at the end of this segment. | |
FunctionCall & | m_owning_call |
lldb::user_id_t | m_first_insn_id |
Delimiting instruction IDs taken chronologically. | |
lldb::user_id_t | m_last_insn_id |
SymbolInfo | m_first_symbol_info |
The symbol information of the delimiting instructions. | |
SymbolInfo | m_last_symbol_info |
Definition at line 211 of file TraceDumper.h.
|
inline |
[in] | cursor_sp | A cursor pointing to the beginning of the segment. |
[in] | symbol_info | The symbol information of the first instruction of the segment. |
[in] | call | The FunctionCall object that owns this segment. |
Definition at line 221 of file TraceDumper.h.
References lldb_private::TraceDumper::FunctionCall::FunctionCall(), m_first_insn_id, m_first_symbol_info, m_last_insn_id, m_last_symbol_info, and m_owning_call.
Referenced by operator=(), and TracedSegment().
|
privatedelete |
References TracedSegment().
void TraceDumper::FunctionCall::TracedSegment::AppendInsn | ( | const lldb::TraceCursorSP & | cursor_sp, |
const SymbolInfo & | symbol_info ) |
Append a new instruction to this segment.
[in] | cursor_sp | A cursor pointing to the new instruction. |
[in] | symbol_info | The symbol information of the new instruction. |
Definition at line 590 of file TraceDumper.cpp.
References m_last_insn_id, and m_last_symbol_info.
Referenced by AppendErrorToFunctionCallForest(), and AppendInstructionToFunctionCallForest().
TraceDumper::FunctionCall & TraceDumper::FunctionCall::TracedSegment::CreateNestedCall | ( | const lldb::TraceCursorSP & | cursor_sp, |
const SymbolInfo & | symbol_info ) |
Create a nested call at the end of this segment.
[in] | cursor_sp | A cursor pointing to the first instruction of the nested call. |
[in] | symbol_info | The symbol information of the first instruction of the nested call. |
Definition at line 619 of file TraceDumper.cpp.
References m_nested_call, and m_owning_call.
Referenced by AppendInstructionToFunctionCallForest().
lldb::user_id_t TraceDumper::FunctionCall::TracedSegment::GetFirstInstructionID | ( | ) | const |
Definition at line 598 of file TraceDumper.cpp.
References m_first_insn_id.
const TraceDumper::SymbolInfo & TraceDumper::FunctionCall::TracedSegment::GetFirstInstructionSymbolInfo | ( | ) | const |
Definition at line 628 of file TraceDumper.cpp.
References m_first_symbol_info.
Referenced by OutputWriterCLI::DumpSegmentContext().
lldb::user_id_t TraceDumper::FunctionCall::TracedSegment::GetLastInstructionID | ( | ) | const |
Definition at line 603 of file TraceDumper.cpp.
References m_last_insn_id.
const TraceDumper::SymbolInfo & TraceDumper::FunctionCall::TracedSegment::GetLastInstructionSymbolInfo | ( | ) | const |
Definition at line 634 of file TraceDumper.cpp.
References m_last_symbol_info.
Referenced by AppendInstructionToFunctionCallForest(), and OutputWriterCLI::DumpSegmentContext().
const TraceDumper::FunctionCall & TraceDumper::FunctionCall::TracedSegment::GetOwningCall | ( | ) | const |
Definition at line 614 of file TraceDumper.cpp.
References m_owning_call.
Referenced by OutputWriterCLI::DumpSegmentContext().
void TraceDumper::FunctionCall::TracedSegment::IfNestedCall | ( | std::function< void(const FunctionCall &function_call)> | callback | ) | const |
Executed the given callback if there's a nested call at the end of this segment.
Definition at line 607 of file TraceDumper.cpp.
References lldb_private::TraceDumper::FunctionCall::FunctionCall(), and m_nested_call.
|
private |
References TracedSegment().
|
private |
Delimiting instruction IDs taken chronologically.
Definition at line 280 of file TraceDumper.h.
Referenced by GetFirstInstructionID(), and TracedSegment().
|
private |
The symbol information of the delimiting instructions.
Definition at line 287 of file TraceDumper.h.
Referenced by GetFirstInstructionSymbolInfo(), and TracedSegment().
|
private |
Definition at line 281 of file TraceDumper.h.
Referenced by AppendInsn(), GetLastInstructionID(), and TracedSegment().
|
private |
Definition at line 288 of file TraceDumper.h.
Referenced by AppendInsn(), GetLastInstructionSymbolInfo(), and TracedSegment().
|
private |
An optional nested call starting at the end of this segment.
Definition at line 284 of file TraceDumper.h.
Referenced by CreateNestedCall(), and IfNestedCall().
|
private |
Definition at line 290 of file TraceDumper.h.
Referenced by CreateNestedCall(), GetOwningCall(), and TracedSegment().