|
CookMem 1.4.0
A C++ memory context / allocator
|
#include <logger.h>
Public Member Functions | |
| std::size_t | getNumAllocations () const |
| std::size_t | getNumAllocations (MemAllocType_et allocType) const |
| std::size_t | getNumDeallocations () const |
| std::size_t | getNumGetSegments () const |
| std::size_t | getNumFreeSegments () const |
| std::size_t | getNumTrimEmptySegments () const |
| std::size_t | getTotalAllocated () const |
| std::size_t | getTotalDeallocated () const |
| std::size_t | getTotalGetSegmentSize () const |
| std::size_t | getTotalFreeSegmentSize () const |
| std::size_t | getCurrentAllocated () const |
| std::size_t | getPeakAllocated () const |
| std::size_t | getCurrentSegments () const |
| std::size_t | getPeakSegments () const |
| std::size_t | getCurrentSegmentSize () const |
| std::size_t | getPeakSegmentSize () const |
| void | printStats () const |
Static Public Member Functions | |
| static const char * | getAllocationTypeName (MemAllocType_et allocType) |
Memory allocation and segment usage statistics.
|
inlinestatic |
Get a short name for an allocation type, as printed by printStats ().
| allocType | the allocation type. |
|
inline |
Get the current number of allocated user bytes.
|
inline |
Get the current number of active memory segments.
|
inline |
Get the current size of active memory segments.
|
inline |
Get the number of successful allocation events.
|
inline |
Get the number of successful allocations of a particular type.
|
inline |
Get the number of deallocation events.
|
inline |
Get the number of released memory segments.
|
inline |
Get the number of acquired memory segments.
|
inline |
Get the number of pool empty-segment trimming passes.
|
inline |
Get the peak number of allocated user bytes.
|
inline |
Get the peak number of active memory segments.
|
inline |
Get the peak size of active memory segments.
|
inline |
Get the total number of bytes allocated.
|
inline |
Get the total number of bytes deallocated.
|
inline |
Get the total size of released memory segments.
|
inline |
Get the total size of acquired memory segments.
|
inline |
Print the statistics to stdout.