Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimingStats ¶
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 ¶
func NewTimingStats() *TimingStats
func (*TimingStats) AddCheckpoint ¶
func (t *TimingStats) AddCheckpoint(name string)
Click to show internal directories.
Click to hide internal directories.