Top: Difference between revisions
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
-l logging mode. | -l logging mode. | ||
Get stats only for specific keys: | Get stats only for specific keys: -o <key>, where keys: ... | ||
< | |||
-n <nprocs> display only up to nprocs. 0 works, it only displays the system-wide stats. | -n <nprocs> display only up to nprocs. 0 works, it only displays the system-wide stats. | ||
Revision as of 04:20, 4 August 2016
Internal
Overview
Linux
Batch Mode
Run "top" in batch mode, just one iteration:
top -b -n 1
Mac
Batch Mode
Specify one sample:
top -l 1
-l logging mode.
Get stats only for specific keys: -o <key>, where keys: ...
-n <nprocs> display only up to nprocs. 0 works, it only displays the system-wide stats.