Versions in this module Expand all Collapse all v1 v1.3.3 Jun 11, 2020 Changes in this version + const EventDataBytes + const SizeofStringRef + const StringRefNil + var DefaultBuffer = New(0) + var ErrFilterNotFound = errors.New("event filter not found") + func Add(d Logger) + func AddData(d Data) + func AddDatac(d Data, c Caller) + func AddDelEventFilter(matching string, isDel bool) (err error) + func Addc(d Logger, c Caller) + func Clear() + func Configure(in *parse.Input) (err error) + func DecodeUint32(b []byte, i int) (uint32, int) + func DecodeUint64(b []byte, i int) (uint64, int) + func DisableAfter(n uint64) + func Enable(v bool) + func Enabled() bool + func EncodeUint32(b []byte, x uint32) int + func EncodeUint64(b []byte, x uint64) int + func F(format string, args ...interface{}) + func F1b(f string, v bool) + func F1u(f string, v uint64) + func F2u(f string, v0, v1 uint64) + func Fc(format string, c Caller, args ...interface{}) + func Fc1b(f string, c Caller, v bool) + func Fc1u(f string, c Caller, v uint64) + func Fc2u(f string, c Caller, v0, v1 uint64) + func GetSequence() uint64 + func GetString(si StringRef) string + func HexData(p []byte) string + func Len() (n int) + func Panic(err interface{}) + func Print(w io.Writer, detail bool) + func PrintFilters(w io.Writer) + func PrintOnHangupSignal(w io.Writer, detail bool) + func PutData(b []byte, data []byte) + func PutUvarint(b []byte, i int) (c []byte) + func ResetFilters() + func Resize(n uint) + func S(s string) + func SaveFile(file string) error + func SaveOnHangupSignal(file string) + func Sc(s string, c Caller) + func String(b []byte) string + func StringLen(b []byte) (l int) + func Uvarint(b []byte) (c []byte, i int) + type Buffer struct + func New(log2Len uint) (b *Buffer) + func (b *Buffer) Add(d Logger, c Caller) + func (b *Buffer) AddData(d Data, c Caller) + func (b *Buffer) AddDelEventFilter(matching string, isDel bool) (err error) + func (b *Buffer) AddTrack(d Logger, c Caller, t uint) + func (b *Buffer) Cap() int + func (b *Buffer) Clear() + func (b *Buffer) DisableAfter(n uint64) + func (b *Buffer) Enable(v bool) + func (b *Buffer) Enabled() bool + func (b *Buffer) F(format string, args ...interface{}) + func (b *Buffer) F1b(format string, v bool) + func (b *Buffer) F1u(format string, v uint64) + func (b *Buffer) F2u(format string, v0, v1 uint64) + func (b *Buffer) Fc(format string, c Caller, args ...interface{}) + func (b *Buffer) Fc1b(format string, c Caller, v bool) + func (b *Buffer) Fc1u(format string, c Caller, v uint64) + func (b *Buffer) Fc2u(format string, c Caller, v0, v1 uint64) + func (b *Buffer) GetCaller(a PointerToFirstArg) (c Caller) + func (b *Buffer) GetSequence() uint64 + func (b *Buffer) Len() (n int) + func (b *Buffer) NewView() (v *View) + func (b *Buffer) Panic(err interface{}) + func (b *Buffer) Print(w io.Writer, detail bool) + func (b *Buffer) PrintFilters(w io.Writer) + func (b *Buffer) PrintOnHangupSignal(w io.Writer, detail bool) + func (b *Buffer) ResetFilters() + func (b *Buffer) Resize(n uint) + func (b *Buffer) S(s string) + func (b *Buffer) SaveOnHangupSignal(file string) + func (b *Buffer) Sc(s string, c Caller) + func (v *Buffer) GetString(si StringRef) string + func (v *Buffer) SetString(s string) StringRef + func (v *Buffer) SetStringf(format string, args ...interface{}) StringRef + type Caller struct + func GetCaller(a PointerToFirstArg) (c Caller) + func (c *Caller) SetTimeNow() + type CallerInfo struct + Entry uint64 + File string + Line int + Name string + PC uint64 + TypeName string + TypePkgPath string + func (c *CallerInfo) Match(re *regexp.Regexp) bool + func (c *CallerInfo) ShortPath(p string, max uint) (f string, overflow bool) + type Data interface + ElogData func() Logger + type EventMatch struct + Events []uint + type EventTrack struct + Name string + type Format func(format string, args ...interface{}) + type Log struct + func (l *Log) GetString(si StringRef) string + func (l *Log) Logf(format string, args ...interface{}) + type Logger interface + Elog func(l *Log) + type Pointer unsafe.Pointer + type PointerToFirstArg unsafe.Pointer + type StringRef uint32 + func SetString(s string) StringRef + func SetStringf(format string, args ...interface{}) StringRef + type View struct + Times viewTimes + func NewView() *View + func (v *View) ElapsedTime(e *eventHeader) float64 + func (v *View) Event(i uint) *eventHeader + func (v *View) EventCaller(i uint) (c *CallerInfo) + func (v *View) EventLines(i uint) (s []string) + func (v *View) EventsMatching(matching string, events0 []uint) (events []uint, err error) + func (v *View) GetString(si StringRef) string + func (v *View) LoadFile(file string) (err error) + func (v *View) MarshalBinary() ([]byte, error) + func (v *View) Name() string + func (v *View) NumEvents() uint + func (v *View) Print(w io.Writer, verbose bool) + func (v *View) PrintEvents(w io.Writer, es []uint, verbose bool) + func (v *View) Reset() + func (v *View) Restore(r io.Reader) (err error) + func (v *View) Save(w io.Writer) (err error) + func (v *View) SaveFile(file string) (err error) + func (v *View) SetName(name string) + func (v *View) SetString(s string) StringRef + func (v *View) SetStringf(format string, args ...interface{}) StringRef + func (v *View) SubView(t0, t1 float64) (n uint) + func (v *View) UnmarshalBinary(b []byte) (err error)