debugmalloc

final_realms_fluffos_v1/lib/doc/driver/efuns/debugging/debugmalloc · 663 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

.\"dumps information on malloc'd memory to a file.

Name
.SI 5
debugmalloc() - dumps information on malloc'd memory to a file.

.EI
Synopsis
.SI 5
void debugmalloc(string filename, int mask);

.EI
Description
.SP 5 5
This efun is only available when DEBUGMALLOC and DEBUGMALLOC_EXTENSIONS are
both defined in options.h at driver build time.  The debugmalloc() efun will
dump information on those chunks of memory allocated by DMALLOC() and related
macros if the mask bitwise and'd (&) with the tag supplied by the macro
(i.e. (mask & tag)) is non-zero.  Read md.c and config.h in the driver source
for more information.

.EP
See also
.SI 5
set_malloc_mask(3)
.EI

Site Stats

Snippets: 1791
Codebases: 571