Added tool for measuring memory usage