Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimingStats ¶ added in v1.5.0
TimingStats is a helper to breakdown the timing of an expensive function call Usage: ts := NewTimingStats() ts.AddCheckpoint("checkpoint-1") ... ts.AddCheckpoint("checkpoint-2") ... ts.AddCheckpoint("checkpoint-3") ts.Timings()
func NewTimingStats ¶ added in v1.5.0
func NewTimingStats() *TimingStats
func (*TimingStats) AddCheckpoint ¶ added in v1.5.0
func (t *TimingStats) AddCheckpoint(name string)
Click to show internal directories.
Click to hide internal directories.