Documentation
¶
Index ¶
- type Index
- func (i *Index) NearestBeforeOrAt(pc int) *bytecode.DebugPoint
- func (i *Index) NearestBeforeOrAtInFunction(functionID, pc int) *bytecode.DebugPoint
- func (i *Index) PointByID(id bytecode.DebugPointID) *bytecode.DebugPoint
- func (i *Index) PointForPC(pc int) *bytecode.DebugPoint
- func (i *Index) Points() []bytecode.DebugPoint
- func (i *Index) PointsInFunction(functionID int) []*bytecode.DebugPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index resolves ordered debug points globally or within a function. It must not be copied after its first lookup.
func New ¶
func New(points []bytecode.DebugPoint) (Index, error)
New creates an index over a validated defensive copy of points.
func (*Index) NearestBeforeOrAt ¶
func (i *Index) NearestBeforeOrAt(pc int) *bytecode.DebugPoint
NearestBeforeOrAt returns the nearest global point at or before pc.
func (*Index) NearestBeforeOrAtInFunction ¶
func (i *Index) NearestBeforeOrAtInFunction(functionID, pc int) *bytecode.DebugPoint
NearestBeforeOrAtInFunction returns the nearest point in functionID at or before pc.
func (*Index) PointByID ¶
func (i *Index) PointByID(id bytecode.DebugPointID) *bytecode.DebugPoint
PointByID returns the point with id, when one exists.
func (*Index) PointForPC ¶
func (i *Index) PointForPC(pc int) *bytecode.DebugPoint
PointForPC returns the point at pc, when one exists.
func (*Index) Points ¶
func (i *Index) Points() []bytecode.DebugPoint
Points returns all debug points in PC order.
func (*Index) PointsInFunction ¶
func (i *Index) PointsInFunction(functionID int) []*bytecode.DebugPoint
PointsInFunction returns the debug points in functionID ordered by PC.
Click to show internal directories.
Click to hide internal directories.