[PATCH] Add (optional) CPU statistics to top
Denis Vlasenko
vda.linux at googlemail.com
Sun Jun 10 17:52:54 UTC 2007
On Sunday 10 June 2007 07:30, Alex Landau wrote:
> The attached patch adds user, system, nice, irq,
> sortirq, etc. status line to top (if
> ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE is set).
>
> The patch is against trunk rev 18739. It was tested
> with that revision, with the affecting configuration
> options on and off (CONFIG_TOP_CPU_USAGE_PERCENTAGE,
> CONFIG_FEATURE_USE_TERMIOS).
>
> Issue no. 0001379 in bug tracker.
Thanks for pinging.
Applied to svn with modifications. See attached.
[Or maybe not applied yet. My ISP feelin' bad ATM :( ]
Fractional percents ("27.6%") cost rather a lot in code and
are not that important in practice, thus I simplified that
to integer percents. It also gave more space for labels:
"softirq" is better than "si".
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5.patch
Type: text/x-diff
Size: 5425 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070610/54ef22c8/attachment-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6.patch
Type: text/x-diff
Size: 2597 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070610/54ef22c8/attachment-0005.bin
More information about the busybox
mailing list