mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 18:19:04 +02:00
headers: call per-scrape native functions with SyscallN (#2746)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -54,3 +54,11 @@ func TestGetOwnerPIDOfTCPPort(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.EqualValues(t, os.Getpid(), pid)
|
||||
}
|
||||
|
||||
func BenchmarkGetTCPConnectionStates(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
|
||||
for b.Loop() {
|
||||
_, _ = iphlpapi.GetTCPConnectionStates(windows.AF_INET)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user