Graphing a process's memory usage
问题 Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu? ps aux will show a numerical snapshot, but I'd really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours. Has anyone got any suggestions? 回答1: I couldn't find any real tools to do it. But I have found a neat small set of scripts that'll do it. Using this little bash loop to do the logging: while true; do ps -C <ProgramName> -o pid=,%mem=,vsz= >> /tmp/mem