(name, value string, err error)
| 68 | } |
| 69 | |
| 70 | func 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 | |
| 81 | func compileTagFilter(name, value string, numLabelUnits map[string]string, ui plugin.UI, err error) (func(*profile.Sample) bool, error) { |
| 82 | if value == "" || err != nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…