add memory usage metrics