telemetry

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PhaseTimer

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

func NewPhaseTimer

func NewPhaseTimer() *PhaseTimer

func (*PhaseTimer) Add

func (t *PhaseTimer) Add(name string, d time.Duration)

func (*PhaseTimer) Snapshot

func (t *PhaseTimer) Snapshot() map[string]time.Duration

func (*PhaseTimer) Start

func (t *PhaseTimer) Start()

func (*PhaseTimer) Total

func (t *PhaseTimer) Total() time.Duration

func (*PhaseTimer) Track

func (t *PhaseTimer) Track(name string, fn func() error) error

func (*PhaseTimer) TrackFunc

func (t *PhaseTimer) TrackFunc(name string, fn func())

type Summary

type Summary struct {
	Total        time.Duration
	Phases       map[string]time.Duration
	KubeRequests int
	KubeAvg      time.Duration
	KubeMax      time.Duration
	CacheHits    int
	CacheMisses  int
}

func (Summary) Line

func (s Summary) Line() string

Jump to

Keyboard shortcuts

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