profile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = Configuration{}
View Source
var TimeStatisticMgr = &timeStatisticMgr{
	elements: make(map[string]*timeElement),
}

Functions

func FreeWatcher

func FreeWatcher(t *TimeWatcher)

Types

type Configuration

type Configuration struct {
	SlowMS int
}

func (*Configuration) Close

func (c *Configuration) Close() error

func (*Configuration) Init

func (c *Configuration) Init() error

func (*Configuration) Name

func (c *Configuration) Name() string

type TimeWatcher

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

func AllocWatcher

func AllocWatcher() *TimeWatcher

func (*TimeWatcher) Stop

func (this *TimeWatcher) Stop()

type WatcherPool

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

func NewWatcherPool

func NewWatcherPool(num int) *WatcherPool

func (*WatcherPool) Get

func (wp *WatcherPool) Get() (t *TimeWatcher)

func (*WatcherPool) Give

func (wp *WatcherPool) Give(t *TimeWatcher)

Jump to

Keyboard shortcuts

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