ps -ef | grep ipdb
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
john 22534 6.7 0.6 149780 27120 pts/29 Sl+ 11:00 0:00 /usr/bin/python /usr/local/bin/ipdb p65
pmap 22534|tail -1
total 149780K
..C’est pas dingue, ça ?..
]]>Ou alors une petite fonction dans le .bashrc:
function get_memory() {
pmap $(ps aux | grep $1 | grep -v grep | awk ‘{ print $2 }’)
}