diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-13 19:46:34 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-03 19:01:38 +0200 |
commit | e5184599814a3210497035e9942f154945f2b02f (patch) | |
tree | 35b02f22092f4d561adb4be1e98a2847338cb92c /unsupported | |
parent | 6f387008cba414abdf695ae0eccdc0501bd36a1d (diff) |
Add DiskIOMeter for IO read/write usage
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Platform.c | 4 | ||||
-rw-r--r-- | unsupported/Platform.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c index b095e126..6a6b0131 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -135,3 +135,7 @@ char* Platform_getProcessEnv(pid_t pid) { (void) pid; return NULL; } + +void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend) { + *bytesRead = *bytesWrite = *msTimeSpend = 0; +} diff --git a/unsupported/Platform.h b/unsupported/Platform.h index fca7fc47..cdce6f38 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -47,4 +47,6 @@ bool Process_isThread(Process* this); char* Platform_getProcessEnv(pid_t pid); +void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend); + #endif |