Avatar
This article provides cross-platform functions to get the peak (maximum) and current resident set size of a process, and explains what works on what OS.