perf

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(name string, delta int64)

Count increments a named counter by delta.

func Enabled

func Enabled() bool

Enabled reports whether profiling is enabled.

func Record

func Record(name string, d time.Duration)

Record captures a duration sample for the given name.

func Time

func Time(name string) func()

Time returns a function that records elapsed time when invoked.

Types

This section is empty.

Jump to

Keyboard shortcuts

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