Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profiler ¶
type Profiler interface { Init() Add(search.Use) PkgLoaded([]*packages.Package) Searched() Flushed() Result() *Profile Write(io.Writer) }
func NewNullProfiler ¶
func NewNullProfiler() Profiler
func NewProfiler ¶
type Stopwatch ¶
type Stopwatch interface { // Init starts the stopwatch. Init() // Memory records the elapsed time. Memory(id string) Result() map[string]*StopwatchRecord }
func NewStopwatch ¶
func NewStopwatch() Stopwatch
type StopwatchRecord ¶
type StopwatchRecord struct { ID string // Elapsed is the elapsed time from Stopwatch.Init(). Elapsed time.Duration // ElapsedSegment is the elapsed time from the previous Stopwatch.Memory() // If Stopwatch.Memory() is not called, this is the elapsed time from the Stopwatch.Init(). ElapsedSegment time.Duration }
Click to show internal directories.
Click to hide internal directories.