(lookup []string)
| 80 | } |
| 81 | |
| 82 | func bestEffortLookupRM(lookup []string) []metrics.Description { |
| 83 | ret := make([]metrics.Description, 0, len(lookup)) |
| 84 | for _, rm := range metrics.All() { |
| 85 | for _, m := range lookup { |
| 86 | if m == rm.Name { |
| 87 | ret = append(ret, rm) |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | return ret |
| 92 | } |
| 93 | |
| 94 | type goCollector struct { |
| 95 | base baseGoCollector |
no outgoing calls