debug

package
v0.0.0-...-8a6d2ef Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PProfHandle

func PProfHandle(r *mux.Router)

func Time

func Time(log logrus.FieldLogger, format string, args ...interface{}) func()

Time measures duration of a function

Usage: (notice the suffix of '()')

func A() {
        defer debug.Time(log, "some %s", "args")()
        ....
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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