memdebug.h

David Relson relson at osagesoftware.com
Fri May 9 22:23:30 CEST 2003


At 04:13 PM 5/9/03, Matthias Andree wrote:

>relson at users.sourceforge.net writes:
>
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1:/tmp/cvs-serv8057/src
> >
> > Modified Files:
> >       Makefile.am main.c xcalloc.c xmalloc.c xrealloc.c
> > Added Files:
> >       memdebug.h memdebug.c
> > Log Message:
> > Add basic memory accounting and debug capability.
>
>David,
>
>what does this code do that valgrind or dmalloc cannot do?

Hi Matthias,

It has minimal impact on program speed.  It's quick and easy to use to get 
a summary of what's going on.

It's code that I have and use periodically.  I thought it'd be useful to 
have it as part of bogofilter, rather than patch it in whenever I want to 
use it.

I suspect that valgrind and dmalloc are more complex and more 
capable.  This is lightweight and easier to use (at least for me).

David





More information about the bogofilter-dev mailing list