Memory use in Delphi

Getting the real memory use of a process is something far for simple, in the first place because there are no specific functions which retrieve the exact quantity of memory used up by the process, and secondly because it’s difficult to count up which memory belongs to the process and which one doesn’t (for example, a dll is a dynamically loaded library which load only once in memory so that the memory consumed by the dll may or may not be inside what we consider the memory workspace of the process).