This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How much memory is allocated to a particular thread??


I have implemented a rather simple solution where I for each thread
saves when it allocates/deallocates memory through alloc()/free().
It works well, but to be complete I should enhance the header for the
allocated memory (internal in memalloc) to hold the thread allocating
the memory which then would allow me to free the memory for the correct
thread.

(In out system a thread should only in rare cases call free() and never
pass malloc'ed memory on to another thead (we use fixed size chunks for
that), therefore it works ok for us).

Do you want to see a patch?

/David


-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of M
Purnachandra
Sent: 5. oktober 2004 10:41
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] How much memory is allocated to a particular thread??

Dear All,

    Good morning.

I am trying to provide an API abstraction to my Application programmers
to debugg "how much memory is consumed by a thread at any point in
time".
    Can any of you please suggest how to achieve the same.


Thanks and regards,
Purnachandra.


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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]