Documentation ¶
Index ¶
- Variables
- func Disable()
- func Enable()
- func Enabled() bool
- type Dur
- type Node
- type PrintOpts
- type Profile
- func (p *Profile) Do(name string, f func())
- func (p *Profile) Dur() Dur
- func (p *Profile) Fprint(w io.Writer, opts *PrintOpts)
- func (p *Profile) Pop()
- func (p *Profile) Push(name string) *Profile
- func (p *Profile) Sample(name string, d time.Duration)
- func (p *Profile) SetName(name string)
- func (p *Profile) Start(name string) *Sample
- type Sample
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultPrintOpts = PrintOpts{
Indent: " ",
}
)
Functions ¶
Types ¶
type Node ¶
Click to show internal directories.
Click to hide internal directories.