Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

debugmalloc.h File Reference

#include <libcwd/config.h>
#include <libcwd/macro_AllocTag.h>
#include <cstddef>
#include <libcwd/class_alloc.h>
#include <libcwd/lockable_auto_ptr.h>
#include <libcwd/private_set_alloc_checking.h>
#include <libcwd/enum_memblk_types.h>
#include <libcwd/class_marker.h>
#include <libcwd/class_alloc_filter.h>
#include <sys/time.h>

Include dependency graph for debugmalloc.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  libcwd

Enumerations

enum  malloc_report_nt { malloc_report }
 Type of malloc_report. More...

Functions

void set_invisible_on (void)
 Make all future allocations invisible.
void set_invisible_off (void)
 Cancel a call to set_invisible_on.


Detailed Description

Do not include this header file directly, instead include "\ref preparation_step2 "debug.h"".

Enumeration Type Documentation

enum malloc_report_nt
 

Type of malloc_report.

Enumeration values:
malloc_report  Writing the current number of allocated bytes and blocks to an ostream.

See also:
mem_size(void)
mem_blocks(void)
Example:

 Dout(dc::malloc, malloc_report << '.');

will output something like

 MALLOC: Allocated 4350 bytes in 7 blocks.

Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.