On Mon, Jan 07, 2002 at 12:02:04AM -0600, Mendanbar Silverleaf wrote:
> me again.... this profiling stuff really burns my ass.

Profiling means finding out which parts are using most of the CPU.
It has nothing to do with memory-leaks etc.

If you want to trace memory-leaks, you have to keep track of memory
being allocated and de-allocated. So put printf() statements in
alloc_perm(), alloc_mem() and free_mem() and start recording the
amount of memory. Since you have a 'huge leak of something', which
isn't a very helpfull description so I cannot give the most optimal
answer, I assume it's reproducable on demand. In that case, find
out why it is allocating memory there without de-allocating it
later on.

Oh, and thank you for answering to the mailing-list instead of to
me alone.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

Reply via email to