![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
Unittest helper code: a custom allocator to track memory usage. More...
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>Namespaces | |
| namespace | lib |
| Implementation namespace for support and library code. | |
| namespace | lib::test |
| Unit tests for the Lumiera support library. | |
| namespace | lib::test::anonymous_namespace{tracking-allocator.hpp} |
Typedefs | |
| using | PoolHandle = std::shared_ptr< MemoryPool > |
Classes | |
| class | TrackingAllocator |
| Generic low-level allocator attached to tracking MemoryPool. More... | |
| class | TrackAlloc< TY > |
| C++ standard compliant custom allocator adapter backed by the TrackingAllocator and the MemoryPool denoted at construction. More... | |
| class | TrackingFactory |
| Generic object factory backed by TrackingAllocator. More... | |
Variables | |
| const Symbol | GLOBAL {"GLOBAL"} |