chiark / gitweb /
core: whenever a unit terminates, log its consumed resources to the journal
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Sep 2017 12:05:35 +0000 (14:05 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 21 Sep 2017 12:05:35 +0000 (14:05 +0200)
commit58da9c4933dc569030ba1bc54386cf04838ac0dc
tree5a4908595622ec30d3387f9da2c59b643459d882
parentfeab16e5e3c1fa3469405bde91b542e5dcf0aa40
core: whenever a unit terminates, log its consumed resources to the journal

This adds a new recognizable log message for each unit invocation that
contains structured information about consumed resources of the unit as
a whole after it terminated. This is particular useful for apps that
want to figure out what the resource consumption of a unit given a
specific invocation ID was.

The log message is only generated for units that have at least one
XyzAccounting= property turned on, and currently only covers IP traffic and CPU
time metrics.
src/basic/log.c
src/basic/log.h