stats

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Get

func Get(key Type) time.Duration

func GetAll

func GetAll() map[Type]time.Duration

func Init

func Init()

func Print

func Print(key Type)

func PrintCount added in v1.5.3

func PrintCount(key Type)

func PrintSync

func PrintSync()

func Put

func Put(key Type, val time.Duration)

func Update

func Update(key Type, val time.Duration)

func UpdateCount added in v1.5.3

func UpdateCount(key Type, val int)

Types

type Type added in v1.6.1

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

	EventRecord Type = "Event recording"
)

Jump to

Keyboard shortcuts

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