<p>we can use <code>time</code> in a unix environment to see how long something took...</p>

<pre><code>shell&gt; time some_random_command
real    0m0.709s
user    0m0.008s
sys     0m0.012s
</code></pre>

<p>is there an equivalent for recording memory usage of the process(es)?</p>

<p>in particular i'm interested in peak allocation.</p>

Can you not use ps? e.g.
```
ps v <pid>
```
will return memory information.