stats

package
v1.5.3-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

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 PrintSync

func PrintSync()

func Put

func Put(key StatsType, val time.Duration)

func Update

func Update(key StatsType, val time.Duration)

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"
	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