IndexSupportasmjit::ArenaStatistics

asmjit::ArenaStatistics Struct Reference [¶]

Arena allocation statistics.

Public Members

Members

Member Functions

Accessors
Aggregation

size_t ArenaStatistics::block_count() constnoexcept[¶]

Returns the number of blocks maintained by Arena (or multiple Arenas if aggregated).

size_t ArenaStatistics::used_size() constnoexcept[¶]

Returns the number or bytes used by Arena (or multiple Arenas if aggregated).

Used bytes represent the number of bytes successfully allocated by Arena regardless of how these bytes are actually used. For example if Arena is used with ArenaPool, the number of used bytes pooled by ArenaPool is included in used_size, because it was already returned by Arena.

size_t ArenaStatistics::reserved_size() constnoexcept[¶]

Returns the number of bytes reserved by Arena (or multiple Arenas if aggregated).

size_t ArenaStatistics::overhead_size() constnoexcept[¶]

Returns the number of bytes that were allocated, but couldn't be used by allocations because of size requests, alignment, or other reasons. The overhead should be relatively small with Arena, but still can be used to find pathological cases if they happen for some reason.

size_t ArenaStatistics::pooled_size() constnoexcept[¶]

Returns the number of bytes pooled by Arena reusable pools and eventually ArenaPool if aggregated.

size_t ArenaStatistics::_block_count[¶]

Number of blocks maintained.

A block is a bigger chunk of memory that is used by Arena.

size_t ArenaStatistics::_used_size[¶]

Number of bytes allocated and in use.

size_t ArenaStatistics::_reserved_size[¶]

Number of bytes reserved.

size_t ArenaStatistics::_overhead_size[¶]

Overhead describes.

size_t ArenaStatistics::_pooled_size[¶]

Number of bytes pooled by Arena reusable pools and eventually ArenaPool if aggregated.