Yes, calling adl_memGetInfo will populate the above structure. That much I know. What I can’t seem to determine is the math necessary to calculate the amount of free RAM based on the adl_memInfo_t data. The documentation is a bit unclear about the relationships between the fields in the structure.
I tried the previous calculation, and it yields 0.
So, given the values at hand, is there any way to actually calculate how much RAM is in use/free? I am trying to determine if the application is leaking memory over long periods of time.
I am using a code which allocates memory with (adl_megGet) until it runs over memory. During the allocation the memory allocation exception is caught with the error managment. Actually i didn’t give any thought if there is any other nicer way available now.
You can monitor the heap usage of your application using RTK traces in TMT. I think its level 3 (can’t remember exactly). Check with your distributor or FAE for details.