TMemoryManagerState holds statistics about memory allocations.
TMemoryManagerState = packed record SmallBlockTypeStates: TSmallBlockTypeStates; AllocatedMediumBlockCount: Cardinal; TotalAllocatedMediumBlockSize: Cardinal; ReservedMediumBlockAddressSpace: Cardinal; AllocatedLargeBlockCount: Cardinal; TotalAllocatedLargeBlockSize: Cardinal; ReservedLargeBlockAddressSpace: Cardinal; end;
struct TMemoryManagerState { TSmallBlockTypeStates SmallBlockTypeStates; unsigned AllocatedMediumBlockCount; unsigned TotalAllocatedMediumBlockSize; unsigned ReservedMediumBlockAddressSpace; unsigned AllocatedLargeBlockCount; unsigned TotalAllocatedLargeBlockSize; unsigned ReservedLargeBlockAddressSpace; };
System
GetMemoryManagerState returns a structure containing memory usage statistics for each block type - small, medium and large blocks. It returns this data in a TMemoryManagerState record. AllocMem and GetMemory can be used to allocate memory blocks. The record holds the following information :
Field |
Meaning |
SmallBlockTypeStates |
An array of small memory block information records. |
AllocatedMediumBlockCount |
The number of medium sized memory blocks (blocks less than 264,749 bytes in size). |
TotalAllocatedMediumBlockSize |
The total number of bytes oiccupied by the medium memory blocks. |
ReservedMediumBlockAddressSpace |
The amount of memory reserved for medium memory blocks. |
AllocatedLargeBlockCount |
The number of large sized memory blocks (blocks greater than 264,748 bytes in size). |
TotalAllocatedLargeBlockSize |
The total number of bytes oiccupied by the large memory blocks. |
ReservedLargeBlockAddressSpace |
The amount of memory reserved for large memory blocks. |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|