Top: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:
top -l 1
top -l 1
</pre>
</pre>
-l logging mode.
Get stats only for specific keys:
<pre>
</pre>
-n <nprocs> display only up to nprocs. 0 works, it only displays the system-wide stats.
-o <key>, where keys: ...

Revision as of 04:09, 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:


-n <nprocs> display only up to nprocs. 0 works, it only displays the system-wide stats.

-o <key>, where keys: ...