drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
mem0dbg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MEM_FIELD_HEADER_SIZE   0
#define MEM_SPACE_NEEDED(N)

Functions

UNIV_INTERN void mem_analyze_corruption (void *ptr)
UNIV_INTERN void mem_print_info (void)
UNIV_INTERN void mem_print_new_info (void)

Detailed Description

The memory management: the debug code. This is not a compilation module, but is included in mem0mem.* !

Created 6/9/1994 Heikki Tuuri

Definition in file mem0dbg.h.

Macro Definition Documentation

◆ MEM_FIELD_HEADER_SIZE

#define MEM_FIELD_HEADER_SIZE   0

Definition at line 43 of file mem0dbg.h.

◆ MEM_SPACE_NEEDED

#define MEM_SPACE_NEEDED ( N)
Value:
ut_calc_align((N), UNIV_MEM_ALIGNMENT)
#define ut_calc_align(n, m)
Definition ut0ut.h:187

Definition at line 55 of file mem0dbg.h.

Function Documentation

◆ mem_analyze_corruption()

UNIV_INTERN void mem_analyze_corruption ( void * ptr)

Tries to find neigboring memory allocation blocks and dumps to stderr the neighborhood of a given pointer. in: pointer to place of possible corruption

Tries to find neigboring memory allocation blocks and dumps to stderr the neighborhood of a given pointer.

Parameters
ptrin: pointer to place of possible corruption

Definition at line 822 of file mem0dbg.cc.

◆ mem_print_info()

UNIV_INTERN void mem_print_info ( void )

Prints information of dynamic memory usage and currently allocated memory heaps or buffers. Can only be used in the debug version.

Definition at line 1036 of file mem0dbg.cc.

◆ mem_print_new_info()

UNIV_INTERN void mem_print_new_info ( void )

Prints information of dynamic memory usage and currently allocated memory heaps or buffers since the last ..._print_info or..._print_new_info.

Definition at line 1047 of file mem0dbg.cc.