MySQL 9.1.0
Source Code Documentation
temptable::MemoryMonitor::RAM Struct Reference

#include <allocator.h>

Static Public Member Functions

static size_t increase (size_t bytes)
 Log increments of heap-memory consumption. More...
 
static size_t decrease (size_t bytes)
 Log decrements of heap-memory consumption. More...
 
static size_t threshold ()
 Get heap-memory threshold level. More...
 
static size_t consumption ()
 Get current level of heap-memory consumption. More...
 

Member Function Documentation

◆ consumption()

static size_t temptable::MemoryMonitor::RAM::consumption ( )
inlinestatic

Get current level of heap-memory consumption.

Returns
Current level of heap-memory consumption (in bytes).

◆ decrease()

static size_t temptable::MemoryMonitor::RAM::decrease ( size_t  bytes)
inlinestatic

Log decrements of heap-memory consumption.

[in] Number of bytes.

Returns
Heap-memory consumption after decrease.

◆ increase()

static size_t temptable::MemoryMonitor::RAM::increase ( size_t  bytes)
inlinestatic

Log increments of heap-memory consumption.

[in] Number of bytes.

Returns
Heap-memory consumption after increase.

◆ threshold()

static size_t temptable::MemoryMonitor::RAM::threshold ( )
inlinestatic

Get heap-memory threshold level.

Level is defined by this Allocator.

Returns
Heap-memory threshold.

The documentation for this struct was generated from the following file: