top: document a debugging script
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -30,6 +30,15 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
/* Howto snapshot /proc for debugging top problems:
|
||||||
|
* for f in /proc/[0-9]*""/stat; do
|
||||||
|
* n=${f#/proc/}
|
||||||
|
* n=${n%/stat}_stat
|
||||||
|
* cp $f $n
|
||||||
|
* done
|
||||||
|
* cp /proc/stat /proc/meminfo .
|
||||||
|
* top -bn1 >top.out
|
||||||
|
*/
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user