Custom memory management and optimization utilities.
More...
Custom memory management and optimization utilities.
This module offers specialized classes and functions for handling memory allocation, deallocation, and optimization in performance-critical applications. It provides fine-grained control over memory management to ensure efficient use of resources, including custom allocators and techniques for reducing memory fragmentation.
◆ out_bytes()
string Utils::out_bytes |
( |
size_t | nb | ) |
|
Utility function to convert byte size into a human-readable format.
- Parameters
-
- Returns
- A string representing the size in human-readable format (KB, MB, etc.).
◆ AllocatedBytes
int64_t Utils::AllocatedBytes |
|
extern |
◆ CountAlloc
int64_t Utils::CountAlloc |
|
extern |
Global variables for tracking memory allocation statistics.
◆ CountFreed
int64_t Utils::CountFreed |
|
extern |
◆ MallocDebug
◆ MallocMutex
std::mutex Utils::MallocMutex |
|
extern |
Global mutex for thread-safe memory operations.
◆ MaximumAllocatedBytes
int64_t Utils::MaximumAllocatedBytes |
|
extern |