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)
|
|
}
|