OASIS Command ReferencememCheck |
memcheck - Check OASIS3 memory usage.
memcheck
MemCheck prints memory usage statistics for the OASIS3 kernel.
It first checks the tmpMalloc pool, which is managed by OASIS3, for validity. It will print error messages if it finds errant pointers in the tmpMalloc pool. It then prints statistics on number of bytes allocated from tmpMalloc, number of bytes free in tmpMalloc, and number of bytes free in permMalloc.
Note that, since OASIS3 doesn't manage permMalloc (it's a macro for malloc in the CodeWarrior library), it can't directly find out the amount of free space. It does so indirectly, by attempting to malloc memory until it fails. It then frees that memory. The overall result is benign, but if some task was trying to permMalloc() during this time, that task could fail.
memcheck
3 segments allocated, total allocated bytes = 10240
2 segments free, total free bytes = 186368
PermMalloc pool has 56 Kbytes free