Documentation
¶
Index ¶
- Constants
- func HashString(s string) uint32
- func LookupPC(entries []uint64, index PCIndex, pc uint64) int
- type EncodedPCLineRecord
- type EncodedRecord
- type PCIndex
- type PCLineRecord
- type Record
- type Table
- func (t Table) File(rec EncodedRecord) string
- func (t Table) LookupSymbol(symbol string) (int, bool)
- func (t Table) Name(rec EncodedRecord) string
- func (t Table) PCLineFile(rec EncodedPCLineRecord) string
- func (t Table) SizeBytes() int
- func (t Table) String(id uint32) string
- func (t Table) Symbol(rec EncodedRecord) string
Constants ¶
View Source
const ( EncodedRecordSize = 28 EncodedPCLineRecordSize = 24 RecordFlagWrapper uint32 = 1 EncodedLineWrapper = uint32(1 << 31) EncodedLineMask = EncodedLineWrapper - 1 )
View Source
const DefaultPCPageShift = 12
Variables ¶
This section is empty.
Functions ¶
func HashString ¶
Types ¶
type EncodedPCLineRecord ¶
type EncodedRecord ¶
type PCLineRecord ¶
type Table ¶
type Table struct {
Records []EncodedRecord
PCLines []EncodedPCLineRecord
StringOffsets []uint32
Strings []byte
Hash []uint16
}
func EncodeWithPCLines ¶
func EncodeWithPCLines(records []Record, pcLines []PCLineRecord) (Table, error)
func (Table) File ¶
func (t Table) File(rec EncodedRecord) string
func (Table) Name ¶
func (t Table) Name(rec EncodedRecord) string
func (Table) PCLineFile ¶
func (t Table) PCLineFile(rec EncodedPCLineRecord) string
func (Table) Symbol ¶
func (t Table) Symbol(rec EncodedRecord) string
Click to show internal directories.
Click to hide internal directories.