summaryrefslogtreecommitdiff
path: root/src/cgroups.h
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 20:58:16 +0100
committerinfirit <[email protected]>2014-12-18 21:04:53 +0100
commit76eff089e1ba541cece59f6d2f5847f349448f89 (patch)
treea45acda13ac9ff08b898a9f98638a1ee4edcaf45 /src/cgroups.h
parent396b01dc3e3a704c0015874002b76a5ccda0678a (diff)
downloadmate-system-monitor-76eff089e1ba541cece59f6d2f5847f349448f89.tar.bz2
mate-system-monitor-76eff089e1ba541cece59f6d2f5847f349448f89.tar.xz
Add cgroup support in the process view
Add a new 'Control Group' column to the process view tab. The format for the column is: <path name> (controller name), <path name> (controller name)... Processes that share the same path name across controllers are colesced. For example if a process is in the /foo cgroup for both the memory and cpu controllers, it would display as: /foo (memory,cpu), ... Taken from GSM commits: 2d33adcbc4347c112d57082956b4e199ff7132db Add cgroup support in the process view 645d38a218fedcbf9c7b674740bf213e02933820 Optimize cgroup updating From: Jason Baron <[email protected]>
Diffstat (limited to 'src/cgroups.h')
-rw-r--r--src/cgroups.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cgroups.h b/src/cgroups.h
new file mode 100644
index 0000000..8c42f6f
--- /dev/null
+++ b/src/cgroups.h
@@ -0,0 +1,14 @@
+#ifndef PROCMAN_CGROUP_H_20111103
+#define PROCMAN_CGROUP_H_20111103
+
+#include <glib.h>
+
+#include "procman.h"
+
+void
+get_process_cgroup_info (ProcInfo *info);
+
+gboolean
+cgroups_enabled (void);
+
+#endif /* PROCMAN_CGROUP_H_20111103 */