Команда timex

The timex command times a command; reports process data and system activity

Синтаксис

timex [-o] [-p [-f] [-h] [-k] [-m] [-r] [-t]] [-s] command

-oReport the total number of blocks read or written and total characters transferred by command and all its children. This option works only if the process accounting software is installed.
-pList process accounting records for command and all its children. This option works only if the process accounting software is installed. Sub options f, h, k, m, r, and t modify the data items reported. The options are as follows:

 

-fPrint the fork(2)/ exec(2) flag and system exit status columns in the output.
-hInstead of mean memory size, show the fraction of total available CPU time consumed by the process during its execution. This ``hog factor'' is computed as (total CPU time)/(elapsed time).
-kInstead of memory size, show total kcore-minutes.
-mShow mean core size (the default).
-rShow CPU factor (user time/(system-time + user-time)).
-tShow separate system and user CPU times. The number of blocks read or written and the number of characters transferred are always reported.

-sReport total system activity (not just that due to command ) that occurred during the execution interval of command . All the data items listed in sar are reported.
commandName of the command to execute

Примеры

timex -ops sleep 60 - simple example of command.

Обратно к списку команд