spall

package module
v0.0.0-...-4dca06b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eventer

type Eventer struct {
	// contains filtered or unexported fields
}

func (*Eventer) Begin

func (e *Eventer) Begin(name string, when float64)

func (*Eventer) BeginNow

func (e *Eventer) BeginNow(name string)

func (*Eventer) BeginNowTid

func (e *Eventer) BeginNowTid(tid uint32, name string)

func (*Eventer) BeginNowTidPid

func (e *Eventer) BeginNowTidPid(tid, pid uint32, name string)

func (*Eventer) BeginTid

func (e *Eventer) BeginTid(name string, tid uint32, when float64)

func (*Eventer) BeginTidPid

func (e *Eventer) BeginTidPid(name string, tid, pid uint32, when float64)

func (*Eventer) Close

func (e *Eventer) Close()

func (*Eventer) End

func (e *Eventer) End(when float64)

func (*Eventer) EndNow

func (e *Eventer) EndNow()

func (*Eventer) EndNowTid

func (e *Eventer) EndNowTid(tid uint32)

func (*Eventer) EndNowTidPid

func (e *Eventer) EndNowTidPid(tid, pid uint32)

func (*Eventer) EndTid

func (e *Eventer) EndTid(tid uint32, when float64)

func (*Eventer) EndTidPid

func (e *Eventer) EndTidPid(tid, pid uint32, when float64)

type Flusher

type Flusher interface {
	Flush() error
}

type Profile

type Profile struct {
	// contains filtered or unexported fields
}

func NewProfile

func NewProfile(w io.Writer, unit TimestampUnit) *Profile

func (*Profile) Close

func (p *Profile) Close()

func (*Profile) NewEventer

func (p *Profile) NewEventer() Eventer

func (*Profile) Now

func (p *Profile) Now() float64

type TimestampUnit

type TimestampUnit float64
const (
	UnitNanoseconds  TimestampUnit = 0.001
	UnitMicroseconds TimestampUnit = 1
	UnitMilliseconds TimestampUnit = 1000
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL