summaryrefslogtreecommitdiffstats
path: root/dragonflybsd
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 /dragonflybsd
parent6f387008cba414abdf695ae0eccdc0501bd36a1d (diff)
Add DiskIOMeter for IO read/write usage
Diffstat (limited to 'dragonflybsd')
-rw-r--r--dragonflybsd/Platform.c5
-rw-r--r--dragonflybsd/Platform.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c
index 7d16eda1..36ab2c21 100644
--- a/dragonflybsd/Platform.c
+++ b/dragonflybsd/Platform.c
@@ -205,3 +205,8 @@ char* Platform_getProcessEnv(pid_t pid) {
(void)pid; // prevent unused warning
return NULL;
}
+
+void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend) {
+ // TODO
+ *bytesRead = *bytesWrite = *msTimeSpend = 0;
+}
diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h
index 14a249e1..c0a60233 100644
--- a/dragonflybsd/Platform.h
+++ b/dragonflybsd/Platform.h
@@ -42,4 +42,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