top: implement scrolling up/down (_very_ useful)

function                                             old     new   delta
handle_input                                         494     564     +70
top_main                                             928     947     +19
display_topmem_process_list                          363     381     +18
display_process_list                                1442    1453     +11
clearmems                                             38      28     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/1 up/down: 118/-10)           Total: 108 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2012-09-21 13:04:37 +02:00
parent 3c62bbae94
commit 2fb8d0dee9
2 changed files with 110 additions and 74 deletions

View File

@@ -140,60 +140,6 @@ config BB_SYSCTL
help
Configure kernel parameters at runtime.
config TOP
bool "top"
default y
help
The top program provides a dynamic real-time view of a running
system.
config FEATURE_TOP_CPU_USAGE_PERCENTAGE
bool "Show CPU per-process usage percentage"
default y
depends on TOP
help
Make top display CPU usage for each process.
This adds about 2k.
config FEATURE_TOP_CPU_GLOBAL_PERCENTS
bool "Show CPU global usage percentage"
default y
depends on FEATURE_TOP_CPU_USAGE_PERCENTAGE
help
Makes top display "CPU: NN% usr NN% sys..." line.
This adds about 0.5k.
config FEATURE_TOP_SMP_CPU
bool "SMP CPU usage display ('c' key)"
default y
depends on FEATURE_TOP_CPU_GLOBAL_PERCENTS
help
Allow 'c' key to switch between individual/cumulative CPU stats
This adds about 0.5k.
config FEATURE_TOP_DECIMALS
bool "Show 1/10th of a percent in CPU/mem statistics"
default y
depends on FEATURE_TOP_CPU_USAGE_PERCENTAGE
help
Show 1/10th of a percent in CPU/mem statistics.
This adds about 0.3k.
config FEATURE_TOP_SMP_PROCESS
bool "Show CPU process runs on ('j' field)"
default y
depends on TOP
help
Show CPU where process was last found running on.
This is the 'j' field.
config FEATURE_TOPMEM
bool "Topmem command ('s' key)"
default y
depends on TOP
help
Enable 's' in top (gives lots of memory info).
config FEATURE_SHOW_THREADS
bool "Support for showing threads in ps/pstree/top"
default y