Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetDefaults ¶
func ResetDefaults()
func SetGlobalOpts ¶
func SetGlobalOpts(o Opts)
Types ¶
type Mutex ¶
type Mutex struct {
// contains filtered or unexported fields
}
func (*Mutex) DisableTracer ¶
func (m *Mutex) DisableTracer()
func (*Mutex) EnableTracer ¶
func (m *Mutex) EnableTracer()
func (*Mutex) EnableTracerWithOpts ¶
type RWMutex ¶
type RWMutex struct {
// contains filtered or unexported fields
}
func (*RWMutex) DisableTracer ¶
func (m *RWMutex) DisableTracer()
func (*RWMutex) EnableTracer ¶
func (m *RWMutex) EnableTracer()
func (*RWMutex) EnableTracerWithOpts ¶
type TraceLocker ¶
type TraceLocker interface { EnableTracer() DisableTracer() EnableTracerWithOpts(o Opts) }
type ViolationType ¶
type ViolationType int
const ( ViolationDefault ViolationType = iota // 0, unused ViolationLock // 1, time to lock (awaiting) ViolationCritical // 2, time spent in the lock )
func (ViolationType) String ¶
func (v ViolationType) String() string
Click to show internal directories.
Click to hide internal directories.