Introduced memory metrics for non heap and heap.