stat

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetResourceNodeMap

func ResetResourceNodeMap()

Types

type BaseStatNode

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

func NewBaseStatNode

func NewBaseStatNode(sampleCount uint32, intervalInMs uint32) *BaseStatNode

func (*BaseStatNode) AddMetric

func (n *BaseStatNode) AddMetric(event base.MetricEvent, count uint64)

func (*BaseStatNode) AvgRT

func (n *BaseStatNode) AvgRT() float64

func (*BaseStatNode) CurrentGoroutineNum

func (n *BaseStatNode) CurrentGoroutineNum() int32

func (*BaseStatNode) DecreaseGoroutineNum

func (n *BaseStatNode) DecreaseGoroutineNum()

func (*BaseStatNode) GetMaxAvg

func (n *BaseStatNode) GetMaxAvg(event base.MetricEvent) float64

func (*BaseStatNode) GetPreviousQPS

func (n *BaseStatNode) GetPreviousQPS(event base.MetricEvent) float64

func (*BaseStatNode) GetQPS

func (n *BaseStatNode) GetQPS(event base.MetricEvent) float64

func (*BaseStatNode) GetSum

func (n *BaseStatNode) GetSum(event base.MetricEvent) int64

func (*BaseStatNode) IncreaseGoroutineNum

func (n *BaseStatNode) IncreaseGoroutineNum()

func (*BaseStatNode) MetricsOnCondition

func (n *BaseStatNode) MetricsOnCondition(predicate base.TimePredicate) []*base.MetricItem

func (*BaseStatNode) MinRT

func (n *BaseStatNode) MinRT() float64

func (*BaseStatNode) Reset

func (n *BaseStatNode) Reset()

type ResourceNode

type ResourceNode struct {
	BaseStatNode
	// contains filtered or unexported fields
}

func GetOrCreateResourceNode

func GetOrCreateResourceNode(resource string, resourceType base.ResourceType) *ResourceNode

func GetResourceNode

func GetResourceNode(resource string) *ResourceNode

func InboundNode

func InboundNode() *ResourceNode

InboundNode returns the global inbound statistic node.

func NewResourceNode

func NewResourceNode(resourceName string, resourceType base.ResourceType) *ResourceNode

NewResourceNode creates a new resource node with given name and classification.

func ResourceNodeList

func ResourceNodeList() []*ResourceNode

ResourceNodeList returns the slice of all existing resource nodes.

func (*ResourceNode) ResourceName

func (n *ResourceNode) ResourceName() string

func (*ResourceNode) ResourceType

func (n *ResourceNode) ResourceType() base.ResourceType

type ResourceNodeMap

type ResourceNodeMap map[string]*ResourceNode

type ResourceNodePrepareSlot

type ResourceNodePrepareSlot struct {
}

func (*ResourceNodePrepareSlot) Prepare

func (s *ResourceNodePrepareSlot) Prepare(ctx *base.EntryContext)

type Slot

type Slot struct {
}

func (*Slot) OnCompleted

func (s *Slot) OnCompleted(ctx *base.EntryContext)

func (*Slot) OnEntryBlocked

func (s *Slot) OnEntryBlocked(ctx *base.EntryContext, blockError *base.BlockError)

func (*Slot) OnEntryPassed

func (s *Slot) OnEntryPassed(ctx *base.EntryContext)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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