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

Public Member Functions | |
| memory_pool_statistics ()=default | |
| memory_pool_statistics (const memory_pool_statistics &other) | |
| memory_pool_statistics & | operator= (const memory_pool_statistics &other) |
| memory_pool_statistics (memory_pool_statistics &&other) noexcept | |
| memory_pool_statistics & | operator= (memory_pool_statistics &&other) noexcept |
| double | get_allocation_success_rate () const |
| Get allocation success rate. | |
| void | reset () |
| Reset all statistics. | |
Public Attributes | |
| std::atomic< size_t > | total_allocations {0} |
| std::atomic< size_t > | total_deallocations {0} |
| std::atomic< size_t > | allocation_failures {0} |
| std::atomic< size_t > | peak_usage {0} |
Statistics for memory pool operations.
Definition at line 103 of file memory_pool.h.
|
default |
|
inline |
Definition at line 110 of file memory_pool.h.
|
inlinenoexcept |
Definition at line 126 of file memory_pool.h.
|
inline |
Get allocation success rate.
Definition at line 146 of file memory_pool.h.
References allocation_failures, and total_allocations.
|
inline |
Definition at line 116 of file memory_pool.h.
References allocation_failures, kcenon::monitoring::other, peak_usage, total_allocations, and total_deallocations.
|
inlinenoexcept |
Definition at line 132 of file memory_pool.h.
References allocation_failures, kcenon::monitoring::other, peak_usage, total_allocations, and total_deallocations.
|
inline |
Reset all statistics.
Definition at line 157 of file memory_pool.h.
References allocation_failures, peak_usage, total_allocations, and total_deallocations.
Referenced by kcenon::monitoring::memory_pool::reset_statistics().

| std::atomic<size_t> kcenon::monitoring::memory_pool_statistics::allocation_failures {0} |
Definition at line 106 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::allocate(), get_allocation_success_rate(), operator=(), operator=(), and reset().
| std::atomic<size_t> kcenon::monitoring::memory_pool_statistics::peak_usage {0} |
Definition at line 107 of file memory_pool.h.
Referenced by operator=(), operator=(), reset(), and kcenon::monitoring::memory_pool::update_peak_usage().
| std::atomic<size_t> kcenon::monitoring::memory_pool_statistics::total_allocations {0} |
Definition at line 104 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::allocate(), get_allocation_success_rate(), operator=(), operator=(), and reset().
| std::atomic<size_t> kcenon::monitoring::memory_pool_statistics::total_deallocations {0} |
Definition at line 105 of file memory_pool.h.
Referenced by kcenon::monitoring::memory_pool::deallocate(), operator=(), operator=(), and reset().