profiler

package
v0.0.0-...-d3ccc4f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session time.Time

Session is a single timed action

func Start

func Start() Session

Start a profiling session

func (Session) Done

func (t Session) Done(log zerolog.Logger, msg string)

Done with a profiling session, log when time is "long"

func (Session) LogIf

func (t Session) LogIf(log zerolog.Logger, minLen time.Duration, msg string)

LogIf logs the time taken since the start of the session, if that is longer than the given minimum duration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL