number MemoryInfo(number
type)
Retreives and returns the specified type
of memory information.
The type
can be one of the following:
miFREEHEAP |
The amount of
free memory in the heap. |
miLARGESTPTR |
The size of
the largest chunk of heap memory. |
miFREEHUNK |
The size of the largest available hunk memory block. |
miLARGESTHUNK |
The total amount
of free hunk memory, shifted to the right by 4 bits. |
Example |
FormatPrint(
"Free Heap: %u Bytes\nLargest ptr:
%u Bytes\nFreeHunk: %u KBytes\nLargest hunk: %u Bytes"
MemoryInfo(miFREEHEAP)
MemoryInfo(miLARGESTPTR)
(>> MemoryInfo(miFREEHUNK) 6)
MemoryInfo(miLARGESTHUNK)
)
|
|