Documentation ¶
Index ¶
- Constants
- func Filter(input <-chan Record, output chan<- Record, minLevel LogLevel, ...)
- func GetLines(filename string, lineNum uint32, count uint32) ([]string, error)
- func LogColor(level LogLevel, msg string) string
- func LogColorRGB(level LogLevel) color.RGBA
- func Parse(elfPaths []string, inputStream io.Reader, recordsOut chan<- Record, ...) error
- func ParseStream(inputStream io.Reader, outputCh chan<- []byte, junkCh chan<- []byte, ...) error
- func Render(record Record) string
- func Renderer(input <-chan Record, output io.Writer, srcPath string, full bool) error
- type ArgType
- func (at ArgType) AsInt64(v interface{}) int64
- func (at ArgType) AsUint64(v interface{}) uint64
- func (at ArgType) Decode(record []byte) interface{}
- func (at ArgType) DecodeExtendedStorage(data []byte) (consumed int, isLast bool, result interface{})
- func (at ArgType) IsStoredExtended() bool
- func (at ArgType) Size() int
- type DebugData
- type DebugFile
- func (f *DebugFile) DecodeMetadata(uid uint32) (*MessageMetadata, error)
- func (f *DebugFile) ReadCStringFrom(sym elf.Symbol, expectedSection string) (string, error)
- func (f *DebugFile) ReadCStringFromAddress(addr uint32, expectedPrefix, expectedSection string) (string, error)
- func (f *DebugFile) ReadSymbolInto(sym elf.Symbol, expectedSection string, output interface{}) error
- type Formatter
- type LogLevel
- type MessageMetadata
- type Record
- type Specifier
- type WaitingReader
Constants ¶
View Source
const ( JunkDataUID = 0x00000001 // special MessageUID just for junk data indications InvalidRecordUID = 0x00000002 // special MessageUID for records that could not be parsed properly )
View Source
const ( DebugEscapeByte = 0xA7 DebugSegmentStart = 0xA9 DebugSegmentEnd = 0xAF )
View Source
const (
VariableWidthOrPrecision = -1
)
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter(input <-chan Record, output chan<- Record, minLevel LogLevel, earliest, latest model.VirtualTime)
func LogColorRGB ¶
LogColorRGB is for chart code, but it's kept here so that it can be synchronized with LogColor
func ParseStream ¶
Types ¶
type ArgType ¶
type ArgType uint8
func (ArgType) DecodeExtendedStorage ¶
func (ArgType) IsStoredExtended ¶
type DebugData ¶
type DebugData struct { JunkData *MessageMetadata InvalidRecord *MessageMetadata RecordTypes map[uint32]*MessageMetadata // contains filtered or unexported fields }
func LoadDebugData ¶
func (*DebugData) LookupMetadata ¶
func (dd *DebugData) LookupMetadata(uid uint32) (*MessageMetadata, error)
type DebugFile ¶
type DebugFile struct {
// contains filtered or unexported fields
}
func LoadDebugFile ¶
func (*DebugFile) DecodeMetadata ¶
func (f *DebugFile) DecodeMetadata(uid uint32) (*MessageMetadata, error)
func (*DebugFile) ReadCStringFrom ¶
func (*DebugFile) ReadCStringFromAddress ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func ParseFormat ¶
type MessageMetadata ¶
type MessageMetadata struct { MessageUID uint32 StableID string LogLevel LogLevel Format Formatter Filename string LineNum uint32 }
func (*MessageMetadata) ParseRecord ¶
func (m *MessageMetadata) ParseRecord(record []byte) ([]interface{}, error)
type Record ¶
type Record struct { Metadata *MessageMetadata ArgumentData []interface{} Timestamp model.VirtualTime }
type Specifier ¶
type WaitingReader ¶
type WaitingReader struct {
// contains filtered or unexported fields
}
func (*WaitingReader) Read ¶
func (w *WaitingReader) Read() (b byte, err error)
Click to show internal directories.
Click to hide internal directories.