MCPcopy Create free account
hub / github.com/google/pprof / compileRegexOption

Function compileRegexOption

internal/driver/driver_focus.go:70–79  ·  view source on GitHub ↗
(name, value string, err error)

Source from the content-addressed store, hash-verified

68}
69
70func compileRegexOption(name, value string, err error) (*regexp.Regexp, error) {
71 if value == "" || err != nil {
72 return nil, err
73 }
74 rx, err := regexp.Compile(value)
75 if err != nil {
76 return nil, fmt.Errorf("parsing %s regexp: %v", name, err)
77 }
78 return rx, nil
79}
80
81func compileTagFilter(name, value string, numLabelUnits map[string]string, ui plugin.UI, err error) (func(*profile.Sample) bool, error) {
82 if value == "" || err != nil {

Callers 1

applyFocusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…