perflogger

package
v0.0.0-...-a4f9000 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(enable bool)

Types

type PerformanceLogger

type PerformanceLogger struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *PerformanceLogger

Get unique PerformanceLogger instance

func (*PerformanceLogger) Start

func (p *PerformanceLogger) Start()

Start timer

func (*PerformanceLogger) StopAndLog

func (p *PerformanceLogger) StopAndLog(method string, url string)

Stop timer and output log

Jump to

Keyboard shortcuts

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