This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
How to see the Heap usage in eCos ? Malloc is failing.
- From: "Mohasin Zaki" <mohasin at rpg dot rd dot allied-telesis dot co dot jp>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 5 Oct 2004 12:25:39 +0900
- Subject: [ECOS] How to see the Heap usage in eCos ? Malloc is failing.
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