You can run "vmstat 1" in a terminal. It's polling once per sec, for more accurate info you'd need to instrument malloc or to use a memory cgroup.