Documentation
¶
Overview ¶
Package stats provides functions for measuring different runtime statistics (e.g. time taken to execute, memory being used etc.)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MeasureElapsedTime ¶
Used to time how long a function takes to execute and print to the writer. Example usage: defer stats.MeasureTimeTaken(os.Stdout, "reading entire database and building a cache", time.Now()).
func PrintMemoryUsage ¶
Print out the memory usage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.