• jim warner's avatar
    top: avoid yet more overhead of accessing /proc/status · 53138525
    jim warner authored
    After discovering those terrible costs associated with
    /proc/status vs. /proc/stat, the build_header function
    changed to favor the latter for a field found in both.
    
    Well, low-and-behold, this top program still used some
    flags that needlessly caused 'status' to still be read
    when 'statm' could have served. And, while top's needs
    require conversion from pages to KiB, that's still far
    less costly than reading that gosh darn 'status' file.
    
    [ this patch parallels similar changes to newlib top ]
    Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    53138525
Name
Last commit
Last update
..
README.top Loading commit data...
top.1 Loading commit data...
top.c Loading commit data...
top.h Loading commit data...
top_nls.c Loading commit data...
top_nls.h Loading commit data...