perf

package
v0.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimedLocker

type TimedLocker struct {
	L    sync.Locker
	Desc string
}

func (*TimedLocker) Lock

func (me *TimedLocker) Lock()

func (*TimedLocker) Unlock

func (me *TimedLocker) Unlock()

type TimedRWLocker

type TimedRWLocker struct {
	RWL       missinggo.RWLocker
	WriteDesc string
	ReadDesc  string
}

func (*TimedRWLocker) Lock

func (me *TimedRWLocker) Lock()

func (*TimedRWLocker) RLock

func (me *TimedRWLocker) RLock()

func (*TimedRWLocker) RUnlock

func (me *TimedRWLocker) RUnlock()

func (*TimedRWLocker) Unlock

func (me *TimedRWLocker) Unlock()

type Timer

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

func NewTimer

func NewTimer() Timer

func (*Timer) Stop

func (t *Timer) Stop(desc string) time.Duration

Jump to

Keyboard shortcuts

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