FreeBSD: implement Platform_getDiskIO()

This commit is contained in:
Christian Goettsche
2020-10-21 17:06:32 +02:00
committed by cgzones
parent c91061c84b
commit c2fdfd99eb
17 changed files with 87 additions and 59 deletions

View File

@ -141,10 +141,8 @@ char* Platform_getProcessEnv(pid_t pid) {
return NULL;
}
bool Platform_getDiskIO(unsigned long int *bytesRead,
unsigned long int *bytesWrite,
unsigned long int *msTimeSpend) {
*bytesRead = *bytesWrite = *msTimeSpend = 0;
bool Platform_getDiskIO(DiskIOData* data) {
(void)data;
return false;
}

View File

@ -10,6 +10,7 @@ in the source distribution for its full text.
#include "Action.h"
#include "BatteryMeter.h"
#include "DiskIOMeter.h"
#include "SignalsPanel.h"
#include "UnsupportedProcess.h"
@ -47,9 +48,7 @@ bool Process_isThread(const Process* this);
char* Platform_getProcessEnv(pid_t pid);
bool Platform_getDiskIO(unsigned long int *bytesRead,
unsigned long int *bytesWrite,
unsigned long int *msTimeSpend);
bool Platform_getDiskIO(DiskIOData* data);
bool Platform_getNetworkIO(unsigned long int *bytesReceived,
unsigned long int *packetsReceived,