summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-13 19:46:34 +0200
committercgzones <cgzones@googlemail.com>2020-10-03 19:01:38 +0200
commite5184599814a3210497035e9942f154945f2b02f (patch)
tree35b02f22092f4d561adb4be1e98a2847338cb92c /openbsd
parent6f387008cba414abdf695ae0eccdc0501bd36a1d (diff)
Add DiskIOMeter for IO read/write usage
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c5
-rw-r--r--openbsd/Platform.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 2c8bc7ae..ce370994 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -286,3 +286,8 @@ char* Platform_getProcessEnv(pid_t pid) {
(void) kvm_close(kt);
return env;
}
+
+void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend) {
+ // TODO
+ *bytesRead = *bytesWrite = *msTimeSpend = 0;
+}
diff --git a/openbsd/Platform.h b/openbsd/Platform.h
index 9e742bf3..e5e09ce0 100644
--- a/openbsd/Platform.h
+++ b/openbsd/Platform.h
@@ -43,4 +43,6 @@ void Platform_setTasksValues(Meter* this);
char* Platform_getProcessEnv(pid_t pid);
+void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend);
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy