utils

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package utils groups multiple utils function that can be used by the secl package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PprofDoWithoutContext

func PprofDoWithoutContext(labelSet LabelSet, f func())

PprofDoWithoutContext does the same thing as https://pkg.go.dev/runtime/pprof#Do, but without the allocation resulting from the usage of context values. This function also directly takes a map of labels, instead of incuring allocations when converting from one format (LabelSet) to the other (map).

Types

type LabelSet

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

LabelSet represents an abstracted set of labels that can be used to call PprofDoWithoutContext

func NewLabelSet

func NewLabelSet(labels ...string) (LabelSet, error)

NewLabelSet returns a new LabelSet based on the labels provided as a pair number of arguments (key, value, key value ....)

Jump to

Keyboard shortcuts

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