threadprof

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: ISC Imports: 6 Imported by: 0

Documentation

Overview

Package threadprof provide profiling of threading

Index

Constants

This section is empty.

Variables

View Source
var CountersFactory parl.CountersFactory = &countersFactory{}
View Source
var StatuserFactory parl.StatuserFactory = &statuserFactory{}

Functions

This section is empty.

Types

type Counter

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

func (*Counter) CounterValue

func (cn *Counter) CounterValue(reset bool) (values parl.CounterValues)

func (*Counter) Dec

func (cn *Counter) Dec() (cunter parl.Counter)

func (*Counter) Inc

func (cn *Counter) Inc() (counter parl.Counter)

func (*Counter) SetValue added in v0.4.13

func (cn *Counter) SetValue(value uint64)

type CounterValue

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

func (*CounterValue) DecRate

func (cv *CounterValue) DecRate() (ops uint64)

func (*CounterValue) Get

func (cv *CounterValue) Get() (value uint64, running uint64, max uint64, incRate uint64, decRate uint64)

func (*CounterValue) IncRate

func (cv *CounterValue) IncRate() (ops uint64)

func (*CounterValue) Max

func (cv *CounterValue) Max() (ops uint64)

func (*CounterValue) Running

func (cv *CounterValue) Running() (ops uint64)

func (*CounterValue) Value

func (cv *CounterValue) Value() (value uint64)

type Counters

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

func (*Counters) Add

func (cs *Counters) Add(name parl.CounterID) (counter parl.Counter)

func (*Counters) GetCounters

func (cs *Counters) GetCounters() (list []parl.CounterID, m map[parl.CounterID]parl.Counter)

func (*Counters) GetOrCreateCounter

func (cs *Counters) GetOrCreateCounter(name parl.CounterID) (counter parl.Counter)

func (*Counters) ResetCounters

func (cs *Counters) ResetCounters()

type StatuserOn

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

func (*StatuserOn) Set

func (st *StatuserOn) Set(status string) (statuser parl.Statuser)

func (*StatuserOn) Shutdown

func (st *StatuserOn) Shutdown()

Jump to

Keyboard shortcuts

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