mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-03-22 10:58:20 +00:00
15 lines
387 B
Go
15 lines
387 B
Go
|
package collector
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func BenchmarkProcessCollector(b *testing.B) {
|
||
|
// Whitelist is not set in testing context (kingpin flags not parsed), causing the collector to skip all processes.
|
||
|
localProcessWhitelist := ".+"
|
||
|
processWhitelist = &localProcessWhitelist
|
||
|
|
||
|
// No context name required as collector source is WMI
|
||
|
benchmarkCollector(b, "", newProcessCollector)
|
||
|
}
|