perflogger

package
v0.0.0-...-6bcf364 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(enable bool)

Enable performance logger and initialize the global instance This method should be called once

Types

type PerformanceLogger

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

func GetInstance

func GetInstance() *PerformanceLogger

Get the global 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