diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-01 16:24:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-02 12:15:25 +0100 |
commit | 5ad096b3f1331b175340129a8c9a5a9d711e5415 (patch) | |
tree | 41896760dde9b0ca2d45d04484c4a2308a600b0e /src/core/cgroup.h | |
parent | 606303a93ea52a70ebba55bb3152820e630f2164 (diff) |
core: expose consumed CPU time per unit
This adds support for showing the accumulated consumed CPU time per-unit
in the "systemctl status" output. The property is also readable via the
bus.
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r-- | src/core/cgroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h index 993aa9db7d..869ddae8c4 100644 --- a/src/core/cgroup.h +++ b/src/core/cgroup.h @@ -126,5 +126,9 @@ pid_t unit_search_main_pid(Unit *u); int manager_notify_cgroup_empty(Manager *m, const char *group); +int unit_get_memory_current(Unit *u, uint64_t *ret); +int unit_get_cpu_usage(Unit *u, nsec_t *ret); +int unit_reset_cpu_usage(Unit *u); + const char* cgroup_device_policy_to_string(CGroupDevicePolicy i) _const_; CGroupDevicePolicy cgroup_device_policy_from_string(const char *s) _pure_; |