LLDB  mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::HTRBlock Class Reference

Block structure representing a sequence of trace "units" (ie instructions). More...

#include <TraceHTR.h>

Collaboration diagram for lldb_private::HTRBlock:
Collaboration graph
[legend]

Public Member Functions

 HTRBlock (size_t offset, size_t size, HTRBlockMetadata metadata)
 Constructor for a block of an HTR layer. More...
 
size_t GetOffset () const
 Get the offset of the start of this block in the previous layer. More...
 
size_t GetSize () const
 Get the number of blocks/instructions that make up this block in the previous layer. More...
 
const HTRBlockMetadataGetMetadata () const
 Get the metadata for this block. More...
 

Private Attributes

size_t m_offset
 Offset in the previous layer. More...
 
size_t m_size
 Number of blocks/instructions that make up this block in the previous layer. More...
 
HTRBlockMetadata m_metadata
 General metadata for this block. More...
 

Detailed Description

Block structure representing a sequence of trace "units" (ie instructions).

Sequences of blocks are merged to create a new, single block See lldb/docs/htr.rst for comprehensive HTR documentation

Definition at line 91 of file TraceHTR.h.

Constructor & Destructor Documentation

◆ HTRBlock()

lldb_private::HTRBlock::HTRBlock ( size_t  offset,
size_t  size,
HTRBlockMetadata  metadata 
)
inline

Constructor for a block of an HTR layer.

Parameters
[in]offsetThe offset of the start of this block in the previous layer.
[in]sizeNumber of blocks/instructions that make up this block in the previous layer.
[in]metadataGeneral metadata for this block.

Definition at line 104 of file TraceHTR.h.

Member Function Documentation

◆ GetMetadata()

const HTRBlockMetadata & HTRBlock::GetMetadata ( ) const

Get the metadata for this block.

Returns
The metadata of the block.

Definition at line 53 of file TraceHTR.cpp.

Referenced by lldb_private::HTRBlockLayer::GetMetadataByIndex(), and lldb_private::toJSON().

◆ GetOffset()

size_t HTRBlock::GetOffset ( ) const

Get the offset of the start of this block in the previous layer.

Returns
The offset of the block.

Definition at line 49 of file TraceHTR.cpp.

◆ GetSize()

size_t HTRBlock::GetSize ( ) const

Get the number of blocks/instructions that make up this block in the previous layer.

Returns
The size of the block.

Definition at line 51 of file TraceHTR.cpp.

Member Data Documentation

◆ m_metadata

HTRBlockMetadata lldb_private::HTRBlock::m_metadata
private

General metadata for this block.

Definition at line 133 of file TraceHTR.h.

◆ m_offset

size_t lldb_private::HTRBlock::m_offset
private

Offset in the previous layer.

Definition at line 128 of file TraceHTR.h.

◆ m_size

size_t lldb_private::HTRBlock::m_size
private

Number of blocks/instructions that make up this block in the previous layer.

Definition at line 131 of file TraceHTR.h.


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