LLDB mainline
|
Top-level HTR class See lldb/docs/htr.rst for comprehensive HTR documentation. More...
#include <TraceHTR.h>
Public Member Functions | |
TraceHTR (Thread &thread, TraceCursor &cursor) | |
Constructor for a trace's HTR. | |
void | ExecutePasses () |
Executes passes on the HTR layers until no further summarization/compression is achieved. | |
llvm::Error | Export (std::string outfile) |
Export HTR layers to the specified format and outfile. | |
llvm::ArrayRef< HTRBlockLayerUP > | GetBlockLayers () const |
Get the block layers of this HTR. | |
HTRInstructionLayer const & | GetInstructionLayer () const |
Get the instruction layer of this HTR. | |
void | AddNewBlockLayer (HTRBlockLayerUP &&block_layer) |
Add a new block layer to this HTR. | |
Private Attributes | |
HTRInstructionLayerUP | m_instruction_layer_up |
std::vector< HTRBlockLayerUP > | m_block_layer_ups |
Top-level HTR class See lldb/docs/htr.rst for comprehensive HTR documentation.
Definition at line 305 of file TraceHTR.h.
TraceHTR::TraceHTR | ( | Thread & | thread, |
TraceCursor & | cursor | ||
) |
Constructor for a trace's HTR.
[in] | thread | The thread the trace belongs to. |
[in] | cursor | The trace cursor that gives access to the trace's contents. |
Definition at line 129 of file TraceHTR.cpp.
References lldb::eTraceCursorSeekTypeBeginning, lldb_private::TraceCursor::Seek(), and lldb_private::TraceCursor::SetForwards().
void TraceHTR::AddNewBlockLayer | ( | HTRBlockLayerUP && | block_layer | ) |
Add a new block layer to this HTR.
[in] | The | new block layer to be added. |
Definition at line 64 of file TraceHTR.cpp.
References m_block_layer_ups.
Referenced by ExecutePasses().
void TraceHTR::ExecutePasses | ( | ) |
Executes passes on the HTR layers until no further summarization/compression is achieved.
Definition at line 211 of file TraceHTR.cpp.
References AddNewBlockLayer(), lldb_private::BasicSuperBlockMerge(), lldb_private::IHTRLayer::GetNumUnits(), and m_instruction_layer_up.
Referenced by lldb_private::ctf::CommandObjectThreadTraceExportCTF::DoExecute().
llvm::Error TraceHTR::Export | ( | std::string | outfile | ) |
Export HTR layers to the specified format and outfile.
[in] | outfile | The file that the exported HTR data will be written to. |
Definition at line 233 of file TraceHTR.cpp.
References lldb_private::toJSON().
Referenced by lldb_private::ctf::CommandObjectThreadTraceExportCTF::DoExecute().
llvm::ArrayRef< HTRBlockLayerUP > TraceHTR::GetBlockLayers | ( | ) | const |
Get the block layers of this HTR.
Definition at line 56 of file TraceHTR.cpp.
References m_block_layer_ups.
Referenced by lldb_private::toJSON().
HTRInstructionLayer const & TraceHTR::GetInstructionLayer | ( | ) | const |
Get the instruction layer of this HTR.
Definition at line 60 of file TraceHTR.cpp.
References m_instruction_layer_up.
Referenced by lldb_private::toJSON().
|
private |
Definition at line 352 of file TraceHTR.h.
Referenced by AddNewBlockLayer(), and GetBlockLayers().
|
private |
Definition at line 350 of file TraceHTR.h.
Referenced by ExecutePasses(), and GetInstructionLayer().