chiark / gitweb /
core: expose consumed CPU time per unit
[elogind.git] / src / core / unit.h
index b3775d4d897849e25a40aa58712f36271c7042c5..ac5647a7f2677d55e8e98a87859b9eb328136efd 100644 (file)
@@ -176,6 +176,9 @@ struct Unit {
         UnitFileState unit_file_state;
         int unit_file_preset;
 
+        /* Where the cpuacct.usage cgroup counter was at the time the unit was started */
+        nsec_t cpuacct_usage_base;
+
         /* Counterparts in the cgroup filesystem */
         char *cgroup_path;
         CGroupControllerMask cgroup_realized_mask;