Task monitor
tmon [-h|-v] [cpu|mem] [-task Num] [-dt Interval] [-n Count]
tmon
is a task monitor.
It is a top
command wrapper that returns the top CPU or
memory consuming tasks at regular interval.
Note: This tool only works under Linux.
cpu
mem
-task Num
-dt Interval
-n Count
The output contains blocks of task info in this form:
n3212: 2014/07/31 14:43:28 PDT PID VIRT %MEM TIME+ %CPU COMMAND 3343 494m 2.3 1:58.10 1.4 firefox 849 0 0.0 0:02.94 0.2 usb-storage 1 2160 0.0 0:07.14 0.0 init 2 0 0.0 0:00.00 0.0 migration/0 3 0 0.0 0:00.00 0.0 ksoftirqd/0 4 0 0.0 0:00.00 0.0 watchdog/0
The first line contains a marker in this form:
label: date
where column 1 is a label that identifies the originating machine (usually the first part of its domain name); column 2 is a date in the machine’s local timezone.
The second line contains the column labels for the task info. The third line and up (until the next marker line) contain the task info.