From fc1f63b1c04cb6101f3a780e104a7f295c4d307a Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 20 Apr 2019 12:01:36 +0200 Subject: Add disk IO on process info Based on GNOME/gnome-system-monitor@60a787b --- src/procman.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/procman.h') diff --git a/src/procman.h b/src/procman.h index d7f1ce9..44ef2bc 100644 --- a/src/procman.h +++ b/src/procman.h @@ -114,7 +114,11 @@ struct ProcConfig struct MutableProcInfo { MutableProcInfo() -: status(0) + : disk_write_bytes_current(0ULL), + disk_read_bytes_current(0ULL), + disk_write_bytes_total(0ULL), + disk_read_bytes_total(0ULL), + status(0U) { } std::string user; @@ -136,6 +140,10 @@ MutableProcInfo() gulong start_time; guint64 cpu_time; + guint64 disk_write_bytes_current; + guint64 disk_read_bytes_current; + guint64 disk_write_bytes_total; + guint64 disk_read_bytes_total; guint status; guint pcpu; gint nice; -- cgit v1.2.1