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)
Click to show internal directories.
Click to hide internal directories.