monitoring the heap

O

onsbomma

Hallo

Does anyone knows a program that monitors the heap??
I want to test the fragmentation of mallocs and therefor I must know the
memory usage of all times.

thx
 
E

E. Robert Tisdale

onsbomma said:
Does anyone knows a program that monitors the heap?
I want to test the fragmentation of mallocs
and, therefore, I must know the memory usage of all times.

I used Google

http://www.google.com/

to search for

+"monitor malloc"

and I found lots of stuff.

If you tell us which platform you are using,
we may be able to direct you to an appropriate forum
for your question.
 
C

Chris Williams

onsbomma said:
Hallo

Does anyone knows a program that monitors the heap??
I want to test the fragmentation of mallocs and therefor I must know the
memory usage of all times.

thx

I would recommend going through:

http://users.bestweb.net/~ctips

The kind of steps he takes to find and prevent memory errors makes me
fear ever working on a large project. Essentially the idea is to access
all of your variables through macros, and within the macros you add in
various checking and debug capabilities when needed. Among these is
examples for keeping track of all allocated/freed memory and logging
that data without effecting your application as much as possible.
Best read sequentially until you get an answer. (And note that he
appears to have written example code directly into the web pages
instead of copy and pasting from real projects, so there may be bugs.)

-Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top