|
|
The timex(1) command records the amount of time taken by a command to execute, and reports the system activities that occurred during the time the command was executing. If no other programs are running, timex can give you a good idea which resources a specific command uses during its execution. A record of system consumption can be collected for each application program and then used for tuning heavily loaded resources.
Use timex as follows:
timex -s application_programThe application program will process normally. When you finish running the application and exit, the timex result, a precise record of the system resources used while the program was executing, is displayed on your screen.
If accounting is installed and running, then timex can present the information it collects as well. The following options can be used with the existence of accounting:
timex [-p[-fhkmrt]] [-o] application_programSee timex(1). for more information.