MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mem0dbg.cc File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

UNIV_INTERN void mem_init (ulint size)
UNIV_INTERN void mem_close (void)
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.cc.

Function Documentation

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.

Parameters
ptrin: pointer to place of possible corruption

Definition at line 820 of file mem0dbg.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void mem_close ( void  )

Closes the memory system.

Definition at line 184 of file mem0dbg.cc.

Here is the call graph for this function:

UNIV_INTERN void mem_init ( ulint  size)

Initializes the memory system.

Parameters
sizein: common pool size in bytes

Definition at line 147 of file mem0dbg.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

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 1034 of file mem0dbg.cc.

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 1045 of file mem0dbg.cc.