[systemd-devel] [PATCH 0/4] More cgtop enhancements
charles at dyfis.net
Wed May 27 15:40:19 PDT 2015
From: Charles Duffy <chaduffy at cisco.com>
In addition to the previously-submitted patch adding support for "raw" (numeric
byte-count, as opposed to human-readable) values, this series adds several new
- Allow the user to specify a strftime-compatible string to use as header.
- Retain default behavior of using only one iteration when output is not to a
TTY, but allow endless looping or a set iteration count to be selected.
- Improve output format in the non-TTY case for easy parsing (separating
batches with an empty line, rather than the de facto "\r \r" string intended
to clear artifacts from user input, and ensuring that flushing stdout happens
*before* the sleep between runs).
The strftime support, by its nature, requires use of an externally-provided
format string; consequently, an appropriate pragma is used to suppress warnings
from gcc. Feedback appreciated.
Charles Duffy (4):
cgtop: raw output option (disable conversion to human-readable units)
cgtop: allow user to force looping behavior even in non-TTY mode
cgtop: more sensible flushing behavior w/ non-TTY output
cgtop: support time header with user-specified format string
src/cgtop/cgtop.c | 100 +++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 81 insertions(+), 19 deletions(-)
More information about the systemd-devel