Going lower-level, you can use the Debug API to get raw kernel-level information about memory usage. Note starting with 2.0 there is also an ...
stackoverflow.com