In unit System
System
System memory manager: free size.
function SysMemSize(p: pointer): PtrUInt
SysFreemSize
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.