Compute memory usage of a piece of software with strace.