Standard library / runtime/pprof
pprof.LabelSet
Opaque collection of key/value labels used by WithLabels and Do. Expected stdout: 'parse\n'.
Formal Syntax & Structure
go syntaxgo
type LabelSet struct {}Working Example
Example Snippetgo
package main
import ( "context" "fmt" "runtime/pprof")
func main() { var l pprof.LabelSet = pprof.Labels("phase", "parse") c := pprof.WithLabels(context.Background(), l) v, _ := pprof.Label(c, "phase") fmt.Println(v)}