| Index: perf/go/types/types.go
|
| diff --git a/perf/go/types/types.go b/perf/go/types/types.go
|
| index 97014b6ecb0ee94e61ea6fa263eb8a763e2a2986..a7f651c9a9a62a1b1e593df6d9a407c1ffff61ac 100644
|
| --- a/perf/go/types/types.go
|
| +++ b/perf/go/types/types.go
|
| @@ -61,6 +61,20 @@ func Matches(tr Trace, query url.Values) bool {
|
| return true
|
| }
|
|
|
| +// MatchesWithIgnores returns true if the given Trace matches the given query
|
| +// and none of the ignore queries.
|
| +func MatchesWithIgnores(tr Trace, query url.Values, ignores ...url.Values) bool {
|
| + if !Matches(tr, query) {
|
| + return false
|
| + }
|
| + for _, i := range ignores {
|
| + if Matches(tr, i) {
|
| + return false
|
| + }
|
| + }
|
| + return true
|
| +}
|
| +
|
| // PerfTrace represents all the values of a single floating point measurement.
|
| // *PerfTrace implements Trace.
|
| type PerfTrace struct {
|
|
|