From 7cd093ce95c1f59cfc1ee2786578457ea6fa1559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 8 Oct 2020 16:34:54 +0200 Subject: Add NetworkIOMeter --- openbsd/Platform.c | 11 +++++++++++ openbsd/Platform.h | 5 +++++ 2 files changed, 16 insertions(+) (limited to 'openbsd') diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 4c2ebdfb..7723ebc5 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -296,3 +296,14 @@ void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWr // TODO *bytesRead = *bytesWrite = *msTimeSpend = 0; } + +void Platform_getNetworkIO(unsigned long int *bytesReceived, + unsigned long int *packetsReceived, + unsigned long int *bytesTransmitted, + unsigned long int *packetsTransmitted) { + // TODO + *bytesReceived = 0; + *packetsReceived = 0; + *bytesTransmitted = 0; + *packetsTransmitted = 0; +} diff --git a/openbsd/Platform.h b/openbsd/Platform.h index c71d490e..b3edf6e8 100644 --- a/openbsd/Platform.h +++ b/openbsd/Platform.h @@ -45,4 +45,9 @@ char* Platform_getProcessEnv(pid_t pid); void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend); +void Platform_getNetworkIO(unsigned long int *bytesReceived, + unsigned long int *packetsReceived, + unsigned long int *bytesTransmitted, + unsigned long int *packetsTransmitted); + #endif -- cgit v1.2.3