stats

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountStats map[StatsType]int
View Source
var GlobalStats map[StatsType]time.Duration
View Source
var Mutex *sync.RWMutex

Functions

func Get

func Get(key StatsType) time.Duration

func GetAll

func GetAll() map[StatsType]time.Duration

func Init

func Init()

func Print

func Print(key StatsType)

func PrintCount added in v1.5.3

func PrintCount(key StatsType)

func PrintSync

func PrintSync()

func Put

func Put(key StatsType, val time.Duration)

func Update

func Update(key StatsType, val time.Duration)

func UpdateCount added in v1.5.3

func UpdateCount(key StatsType, val int)

Types

type StatsType

type StatsType string
const (
	Total                   StatsType = "Total"
	System                  StatsType = "System"
	CacheSync               StatsType = "CacheSync"
	CurrentState            StatsType = "Gather current state"
	PodList                 StatsType = "Pod listing"
	BindingList             StatsType = "Binding listing"
	IDList                  StatsType = "ID listing"
	ExceptionList           StatsType = "Pod Identity Exception listing"
	AssignedIDList          StatsType = "Assigned ID listing"
	CloudGet                StatsType = "Cloud provider get"
	CloudPut                StatsType = "Cloud provider put"
	TotalPutCalls           StatsType = "Number of cloud provider PUT"
	TotalGetCalls           StatsType = "Number of cloud provider GET"
	TotalAssignedIDsCreated StatsType = "Number of assigned ids created in this sync cycle"
	TotalAssignedIDsDeleted StatsType = "Number of assigned ids deleted in this sync cycle"
	K8sGet                  StatsType = "K8s get"
	K8sPut                  StatsType = "K8s put"
	FindAssignedIDDel       StatsType = "Find assigned ids to delete"
	FindAssignedIDCreate    StatsType = "Find assigned ids to create"
	AssignedIDDel           StatsType = "Assigned ID deletion"
	AssignedIDAdd           StatsType = "Assigned ID addition"
	TotalIDDel              StatsType = "Total time to delete assigned IDs"
	TotalIDAdd              StatsType = "Total time to add assigned IDs"
	TotalCreateOrUpdate     StatsType = "Total time to assign or remove IDs"

	EventRecord StatsType = "Event recording"
)

Jump to

Keyboard shortcuts

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