|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Configuration for memory pool. More...
#include <memory_pool.h>

Public Member Functions | |
| bool | validate () const |
| Validate configuration. | |
Public Attributes | |
| size_t | initial_blocks = 256 |
| Initial number of blocks. | |
| size_t | max_blocks = 4096 |
| Maximum number of blocks (0 = unlimited) | |
| size_t | block_size = 64 |
| Size of each block in bytes. | |
| size_t | alignment = 8 |
| Memory alignment (must be power of 2) | |
| bool | use_thread_local_cache = false |
| Use thread-local caching. | |
Configuration for memory pool.
Definition at line 67 of file memory_pool.h.
|
inline |
Validate configuration.
Definition at line 78 of file memory_pool.h.
References alignment, block_size, initial_blocks, and max_blocks.
Referenced by TEST_F(), and TEST_F().

| size_t kcenon::monitoring::memory_pool_config::alignment = 8 |
Memory alignment (must be power of 2)
Definition at line 71 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::grow_pool(), kcenon::monitoring::memory_pool::initialize_pool(), TEST_F(), and validate().
| size_t kcenon::monitoring::memory_pool_config::block_size = 64 |
Size of each block in bytes.
Definition at line 70 of file memory_pool.h.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| size_t kcenon::monitoring::memory_pool_config::initial_blocks = 256 |
Initial number of blocks.
Definition at line 68 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::is_owned_block(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| size_t kcenon::monitoring::memory_pool_config::max_blocks = 4096 |
Maximum number of blocks (0 = unlimited)
Definition at line 69 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::grow_pool(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| bool kcenon::monitoring::memory_pool_config::use_thread_local_cache = false |