profiling

package
v0.0.0-...-253a51a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB
	MiB
	GiB
	TiB
)

Variables

View Source
var SKIP_PROFILING = true

Functions

func LogMemUsage

func LogMemUsage()

Log memory usage

func LogTimer

func LogTimer(msg string, args ...any) func()

func ProfileTrace

func ProfileTrace(name string, profiled, traced bool, fn func())

ProfileTrace run the benchmark function with optionally, benchmarking and tracing The path should neither start nor end with a "/".

func Trace

func Trace(ctx context.Context, dir string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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