core: expose consumed CPU time per unit

System Internals / systemd - Lennart Poettering [poettering.net] - 2 March 2015 05:15 UTC

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.

5ad096b core: expose consumed CPU time per unit
src/core/cgroup.c | 98 +++++++++++++++++++++++++++++++++++++++++----
src/core/cgroup.h | 4 ++
src/core/dbus-unit.c | 42 ++++++++++++-------
src/core/mount.c | 7 +++-
src/core/mount.h | 2 +
src/core/scope.c | 3 ++
src/core/service.c | 7 +++-
src/core/service.h | 2 +
src/core/slice.c | 3 +-
src/core/socket.c | 8 +++-
src/core/socket.h | 2 +
src/core/swap.c | 8 +++-
src/core/swap.h | 2 +
src/core/unit.c | 10 ++++-
src/core/unit.h | 3 ++
src/systemctl/systemctl.c | 9 +++++
16 files changed, 182 insertions(+), 28 deletions(-)

Upstream: github.com


  • Share