package
0.0.0-20241115082555-91616abce05b
Repository: https://github.com/tencentcodedog/linux-go-1.12.6.git
Documentation: pkg.go.dev

# Functions

Do calls f with a copy of the parent context with the given labels added to the parent's label map.
ForLabels invokes f with each label set on the context.
Label returns the value of the label with the given key on ctx, and a boolean indicating whether that label exists.
Labels takes an even number of strings representing key-value pairs and makes a LabelSet containing them.
Lookup returns the profile with the given name, or nil if no such profile exists.
NewProfile creates a new profile with the given name.
Profiles returns a slice of all the known profiles, sorted by name.
SetGoroutineLabels sets the current goroutine's labels to match ctx.
StartCPUProfile enables CPU profiling for the current process.
StopCPUProfile stops the current CPU profile, if any.
WithLabels returns a new context.Context with the given labels added.
WriteHeapProfile is shorthand for Lookup("heap").WriteTo(w, 0).

# Structs

LabelSet is a set of labels.
A Profile is a collection of stack traces showing the call sequences that led to instances of a particular event, such as allocation.