glibc, mallinfo

2005-05-26 Thread Jerome BENOIT

Hello List,

I want to report the memory used
up by my C application at different stages:
I guess that I must reach some usefull inforamtion
with mallinfo, but up to know I have not yet figured
out how to do so ?

Hints or advices  are welcome.

Thanks,
Jerome


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




mallinfo()

1997-08-19 Thread Nathan E Norman
I have some source code that expects to find this function.  Which
library do I need to link in?

Am I missing something obvious here?  I know enough C to be dangerous,
and that's not much.  If you can point me to a web page or FAQ or
something other than a newsgroup which will tell me about mallinfo I'd
appreciate it.

--
Nathan Norman
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD  57104
Voice: (605) 334-4454 Fax: (605) 335-1173
email: [EMAIL PROTECTED] or  [EMAIL PROTECTED]
PGP Key ID: 0xA33B86E9 - Public key available at keyservers
PGP Key fingerprint: CE03 10AF 3281 1858  9D32 C2AB 936D C472



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


mallinfo redux

1997-08-19 Thread Nathan E Norman
For those who care, I thought I'd summarise answers to my mallinfo
question of yesterday, and what I came up with.  

Frits Daalmans suggested that I try the dmalloc package from non-free.
However, when I installed it, there does not appear to be a mallinfo()
defined in dmalloc.h.  I suspect dmalloc is a pretty heavy duty
debugging package, probably overkill for what was needed here, anyway.

Robert Stone advised that that the code for mallinfo() was indeed in
libc (as I had guessed from grepping the usr/lib directory ...), and was
at a loss to explain why it wouldn't link in.

After fighting with it this morning, I decided to add -lc to my linker
flags.  To my surprise, it worked!  Can someone explain why?  I thought
libc was always linked in ...

Anyway, thanks Frits and Robert.  I appreciate the quick help.

--
Nathan Norman
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD  57104
Voice: (605) 334-4454 Fax: (605) 335-1173
email: [EMAIL PROTECTED] or  [EMAIL PROTECTED]
PGP Key ID: 0xA33B86E9 - Public key available at keyservers
PGP Key fingerprint: CE03 10AF 3281 1858  9D32 C2AB 936D C472


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .