Graphing process memory usage on Linux

Solution 1:

Quick hack:

for((i=0;;++i)) { echo $i $(grep VmSize /proc/$(pidof firefox-bin)/status | grep -o '[0-9]*'); sleep 1 || break; } > data
^C
graph -T X data

The same could be done for things other than "VmSize".