I'd like to get the peak memory usage recorded overall time, rather than at a certain time.
Plus, I expect that the systematical way might have better performance compared to userspace sampling.
If I understand correctly, recording the bottom of available free memory might not be helpful for this.
Am I missing something?