home *** CD-ROM | disk | FTP | other *** search
- { *********************************************************************** }
- { }
- { Delphi / Kylix Cross-Platform Runtime Library }
- { }
- { Copyright (c) 1995-2001 Borland Software Corporation }
- { }
- { *********************************************************************** }
-
- unit ShareMem;
-
- interface
-
- {$IFDEF MEMORY_DIAG}
- type
- TBlockEnumProc = function (Block: Pointer): Boolean;
- {$ENDIF}
-
- function SysGetMem(Size: Integer): Pointer;
- function SysFreeMem(P: Pointer): Integer;
- function SysReallocMem(P: Pointer; Size: Integer): Pointer;
- function GetHeapStatus: THeapStatus;
- function GetAllocMemCount: Integer;
- function GetAllocMemSize: Integer;
- procedure DumpBlocks;
-
- {$IFDEF MEMORY_DIAG}
- function InitBlockMarking: Boolean;
- function MarkBlocks: Integer;
- function GetMarkedBlocks(MarkID: Integer; Proc: TBlockEnumProc): Boolean;
- {$ENDIF}
-
- implementation
-