Hacker News new | ask | show | jobs
by gourneau 1525 days ago
TIL that time can also output max memory use, and IO use very useful!

Like they do here:

/usr/bin/time -o performance.log -a -f"%e\t%M\t%x\t%C"

%e (Not in tcsh.) Elapsed real time (in seconds).

%M Maximum resident set size of the process during its lifetime, in Kbytes.

%x (Not in tcsh.) Exit status of the command.

%C (Not in tcsh.) Name and command-line arguments of the command being timed.