View source code
Display the source code in std/experimental/allocator/building_blocks/stats_collector.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Module std.experimental.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.
Example
import std .experimental .allocator .gc_allocator : GCAllocator;
import std .experimental .allocator .building_blocks .free_list : FreeList;
alias Allocator = StatsCollector!(GCAllocator, Options .bytesUsed);
Structs
Name | Description |
---|---|
StatsCollector
|
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 .
|
Enums
Name | Description |
---|---|
Options
|
Options for StatsCollector defined below. Each enables during
compilation one specific counter, statistic, or other piece of information.
|
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.