Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
Unittest helper code: a custom allocator to track memory usage.
By registering each allocation and deallocation, correct memory handling can be verified and memory usage can be investigated in practice.
unique_ptr
Definition in file tracking-allocator.hpp.
#include "lib/error.hpp"
#include "lib/symbol.hpp"
#include "lib/nocopy.hpp"
#include "lib/hash-value.h"
#include "lib/test/event-log.hpp"
#include "lib/format-string.hpp"
#include <utility>
#include <memory>
Classes | |
class | TrackAlloc< TY > |
C++ standard compliant custom allocator adapter backed by the TrackingAllocator and the MemoryPool denoted at construction. More... | |
class | TrackingAllocator |
Generic low-level allocator attached to tracking MemoryPool. More... | |
class | TrackingFactory |
Generic object factory backed by TrackingAllocator. More... | |
Typedefs | |
using | PoolHandle = std::shared_ptr< MemoryPool > |
Variables | |
const Symbol | GLOBAL {"GLOBAL"} |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |