J
Jason
Greetings,
Is there a reliable and portable way of getting malloc statistics within
a running C program? I have tried to use the mallinfo() command, but it
isn't portable (reports different things on linux and HP), and Purify
reports memory access violations with it.
At any given point in a program, I would like to grab total used memory
for the process. Does anyone have a good way of doing this?
Thanks
Jason
Is there a reliable and portable way of getting malloc statistics within
a running C program? I have tried to use the mallinfo() command, but it
isn't portable (reports different things on linux and HP), and Purify
reports memory access violations with it.
At any given point in a program, I would like to grab total used memory
for the process. Does anyone have a good way of doing this?
Thanks
Jason