fs/sys/fsMemMgr_NoT.h File Reference


Detailed Description

Memory manager wrapping macros disabler.

In some cases, it is important to have a chance to disable the 'new' and 'delete' macro wrappers locally, which is the main purpose of this header. Since the macro expansion make sense only in the case of memory (de)allocation. In other cases (e.g. when operator overloading takes place in code) the macros result in syntactically wrong statements. Note that if the macro wrappers are disabled the memory tracking itself is still working (through overloaded 'new' and 'delete' operators), only detailed code position information won't be available. See the example of usage below.

    #include <fs/sys/fsMemMgr_NoT.h> // turn off the tracking macros
    #include <vector>
    #include <fs/sys/fsMemMgr.h> // turn on the tracking macros

Definition in file fsMemMgr_NoT.h.

Go to the source code of this file.

Defines

#define FS_MMGR_ENABLE_BASIC_STATS
 Enable: Basic statistics.
#define FS_MMGR_ENABLE_TRACKING
 Enable: Full memory tracking.
#define FS_MMGR_ENABLE_RTM_BREAK
 Enable: Runtime break invoking in case of memory error.


Define Documentation

#define FS_MMGR_ENABLE_BASIC_STATS

Enable: Basic statistics.

If this directive is defined, only basic statistics are collected and written into the log file. This method has almost zero overhead...

Definition at line 47 of file fsMemMgr_NoT.h.

#define FS_MMGR_ENABLE_RTM_BREAK

Enable: Runtime break invoking in case of memory error.

After defining the directive, the memory manager invokes a runtime error at any time a memory error occurs. It helps catch memory errors in runtime as soon as possible.

Definition at line 56 of file fsMemMgr_NoT.h.

#define FS_MMGR_ENABLE_TRACKING

Enable: Full memory tracking.

If this directive is defined, the full memory tracking is enabled and results are written into the log file.

Definition at line 51 of file fsMemMgr_NoT.h.


FipS' Code (Thu Feb 15 22:43:44 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]