Support for per-task I/O statistics - $top_io
authorPavel Labath <pavelo@centrum.sk>
Fri, 12 Jun 2009 17:08:44 +0000 (19:08 +0200)
committerPavel Labath <pavelo@centrum.sk>
Fri, 12 Jun 2009 17:39:45 +0000 (19:39 +0200)
commitc0d1c313e90dd72e0de557fd0ed4d37db1618656
tree40f9014a276ab81d5d7a60a5d8b4546d087157a1
parent71f6880b01c192af405994934d727e4ea370498a
Support for per-task I/O statistics - $top_io

Basically, I just added three new process properties (io_read, io_write, io_perc - representing
the amount of I/O done by the process during the update interval) and $top_io, that sorts
processes based on io_perc.

Atm, it's completely #ifdef'd, since it requires kernel support. But that creates some wierd
looking syntax at some places, so it may be better to remove some ifdefs.  It even may be
possible to completely remove the ifdefs (ie. convert them to #ifdef linux) since the code will
compile just fine even if the kernel doesn't support I/O accounting. I'll leave that for someone
else to decide.
configure.ac.in
doc/variables.xml
src/conky.c
src/conky.h
src/linux.c
src/text_object.h
src/top.c
src/top.h