Skip to content

File memory_monitor_sr.hpp

FileList > base > memory_monitor_sr.hpp

Go to the source code of this file

  • #include <cstdio>
  • #include <atomic>
  • #include "concurrent_unordered_map.h"
  • #include "memory_monitor_common.hpp"
  • #include <malloc.h>

Namespaces

Type Name
namespace cubmem

Classes

Type Name
class memory_monitor
struct mmon_metainfo

Public Types

Type Name
typedef struct mmon_metainfo MMON_METAINFO

Public Attributes

Type Name
bool mmon_disabled

Public Functions

Type Name
void mmon_add_stat (char * ptr, const size_t size, const char * file, const int line)
void mmon_aggregate_server_info (MMON_SERVER_INFO & server_info)
void mmon_finalize ()
size_t mmon_get_allocated_size (char * ptr)
int mmon_initialize (const char * server_name)
bool mmon_is_memory_monitor_enabled ()
void mmon_sub_stat (char * ptr)

Macros

Type Name
define HAVE_USR_INCLUDE_MALLOC_H
define MMON_DEBUG_LEVEL 0
define MMON_MAX_NAME_LENGTH 255

Public Types Documentation

typedef MMON_METAINFO

typedef struct mmon_metainfo MMON_METAINFO;

Public Attributes Documentation

variable mmon_disabled

bool mmon_disabled;

Public Functions Documentation

function mmon_add_stat

inline void mmon_add_stat (
    char * ptr,
    const  size_t size,
    const  char * file,
    const  int line
) 

function mmon_aggregate_server_info

void mmon_aggregate_server_info (
    MMON_SERVER_INFO & server_info
) 

function mmon_finalize

void mmon_finalize () 

function mmon_get_allocated_size

size_t mmon_get_allocated_size (
    char * ptr
) 

function mmon_initialize

int mmon_initialize (
    const  char * server_name
) 

function mmon_is_memory_monitor_enabled

inline bool mmon_is_memory_monitor_enabled () 

function mmon_sub_stat

inline void mmon_sub_stat (
    char * ptr
) 

Macro Definition Documentation

define HAVE_USR_INCLUDE_MALLOC_H

#define HAVE_USR_INCLUDE_MALLOC_H 

define MMON_DEBUG_LEVEL

#define MMON_DEBUG_LEVEL `0`

define MMON_MAX_NAME_LENGTH

#define MMON_MAX_NAME_LENGTH `255`


The documentation for this class was generated from the following file cubrid/src/base/memory_monitor_sr.hpp