I've been trying to use the 'time' command built-into tcsh to time
processes. Although it reports the time used correctly and all, I'm trying
to following the instructions in the man page to have it also display the
amount of memory used by the process.
From the tcsh man page:
time If set to a number, then the time builtin (q.v.) executes auto-
matically after each command which takes more than that many
CPU seconds. If there is a second word, it is used as a format
string for the output of the time builtin. (u) The following
sequences may be used in the format string:
%X The average amount in (shared) text space used in Kbytes.
%D The average amount in (unshared) data/stack space used in
%K The total space used (%X + %D) in Kbytes.
%M The maximum memory the process had in use at any time in
My problem is that I have no idea how to format this time variable. I've
tried just about everything I can think of (and then even some stuff that
others have suggested), but to no avail. I just can't seem to get the
format string to change at all - not in the slightest.
Has anyone else modified the output of this command before? Do you know how
I can determine the total/max amount of memory used by a process? In theory
command does just that - I just can't get it to work. And 'top' isn't an