[ECOS] How to see the Heap usage in eCos ? Malloc is failing.

Mohasin Zaki mohasin@rpg.rd.allied-telesis.co.jp
Tue Oct 5 03:22:00 GMT 2004


Dear All,

Is there anyway (any eCos library) by which I can see the current heap usage
?

malloc() is failing, returning NULL. So I would like to debug the situation,
to see if there are any leaks in my code.

In Vxworks, we used to use a library called memLib in which memShow() would
would show the total system heap, the current usage, the peak usage, etc.
Something like this would really help in debugging the situation.

If no such memeory library is present, then I would need your suggestions on
deubugging the problems.

Thanks in advance for your advice.

With Regards,

Mohasin



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list