monitoring the memory usage of a build process