Switch memory profiling to track the end memory consumption and the delta