Documentation ¶
Index ¶
- Variables
- func Get(key StatsType) time.Duration
- func GetAll() map[StatsType]time.Duration
- func Init()
- func Print(key StatsType)
- func PrintCount(key StatsType)
- func PrintSync()
- func Put(key StatsType, val time.Duration)
- func Update(key StatsType, val time.Duration)
- func UpdateCount(key StatsType, val int)
- type StatsType
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 PrintCount ¶ added in v1.5.3
func PrintCount(key StatsType)
func UpdateCount ¶ added in v1.5.3
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" )
Click to show internal directories.
Click to hide internal directories.