Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableForTest ¶ added in v0.0.12
func EnableForTest() func()
EnableForTest forces perf collection on (and disables periodic logging). It returns a restore function to reset prior settings.
func Flush ¶ added in v0.0.12
func Flush(reason string)
Flush logs a summary of current stats/counters immediately. If reason is provided, it is included in the log prefix.
func Snapshot ¶ added in v0.0.12
func Snapshot() ([]StatSnapshot, []CounterSnapshot)
Snapshot returns current perf stats/counters and resets them.
Types ¶
type CounterSnapshot ¶ added in v0.0.12
CounterSnapshot captures perf counters for diagnostics/tests.
Click to show internal directories.
Click to hide internal directories.