mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 14:06:38 +00:00
Flags have been deprecated in favour of include/exclude terminology. Signed-off-by: Ben Reedy <breed808@breed808.com>
15 lines
379 B
Go
15 lines
379 B
Go
package collector
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkProcessCollector(b *testing.B) {
|
|
// Include is not set in testing context (kingpin flags not parsed), causing the collector to skip all processes.
|
|
localProcessInclude := ".+"
|
|
processInclude = &localProcessInclude
|
|
|
|
// No context name required as collector source is WMI
|
|
benchmarkCollector(b, "", newProcessCollector)
|
|
}
|