stdx.allocator.building_blocks.stats_collector

Allocator that collects useful statistics about allocations, both global and per calling point. The statistics collected can be configured statically by choosing combinations of Options appropriately.

Members

Enums

Options
enum Options

Options for StatsCollector defined below. Each enables during compilation one specific counter, statistic, or other piece of information.

Structs

StatsCollector
struct StatsCollector(Allocator, ulong flags = Options.all, ulong perCallFlags = 0)

Allocator that collects extra data about allocations. Since each piece of information adds size and time overhead, statistics can be individually enabled or disabled through compile-time flags.

Examples

import stdx.allocator.gc_allocator : GCAllocator;
import stdx.allocator.building_blocks.free_list : FreeList;
alias Allocator = StatsCollector!(GCAllocator, Options.bytesUsed);

Meta