stats

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsService added in v0.25.0

func AsService(prof *Profiler) *services.Service

Types

type Profiler added in v0.25.0

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

func New

func New(title string) *Profiler

func (*Profiler) Get added in v0.25.0

func (r *Profiler) Get(key string) vars.Variable

func (*Profiler) Set added in v0.25.0

func (r *Profiler) Set(key string, value any) error

func (*Profiler) SetTimeLocation added in v0.25.0

func (r *Profiler) SetTimeLocation(loc *time.Location)

func (*Profiler) State added in v0.25.0

func (r *Profiler) State() State

func (*Profiler) Update added in v0.25.0

func (r *Profiler) Update()

type Settings added in v0.24.0

type Settings struct {
	Enabled settings.Bool `key:"enabled,save" default:"false" mutation:"once"  desc:"Enable runtime statistics"`
}

func (Settings) Blueprint added in v0.24.0

func (s Settings) Blueprint() (*settings.Blueprint, error)

type State

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

func (State) Get

func (s State) Get(key string) vars.Variable

func (State) Range

func (s State) Range(cb func(v vars.Variable))

func (State) String

func (s State) String() string

func (State) Time

func (s State) Time() time.Time

Jump to

Keyboard shortcuts

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