A metrics type that enables all metrics for testing.
Warning! Do not use in production code. As metrics are added to it later, code using this struct may unexpectedly grow in code size, memory usage, and/or performance overhead.
Public Member Functions | |
| ::pw::StatusWithSize | get_requested_bytes () const |
| PW_METRIC (requested_bytes, "requested_bytes", 0U) | |
| ::pw::StatusWithSize | get_peak_requested_bytes () const |
| PW_METRIC (peak_requested_bytes, "peak_requested_bytes", 0U) | |
| ::pw::StatusWithSize | get_cumulative_requested_bytes () const |
| PW_METRIC (cumulative_requested_bytes, "cumulative_requested_bytes", 0U) | |
| ::pw::StatusWithSize | get_allocated_bytes () const |
| PW_METRIC (allocated_bytes, "allocated_bytes", 0U) | |
| ::pw::StatusWithSize | get_peak_allocated_bytes () const |
| PW_METRIC (peak_allocated_bytes, "peak_allocated_bytes", 0U) | |
| ::pw::StatusWithSize | get_cumulative_allocated_bytes () const |
| PW_METRIC (cumulative_allocated_bytes, "cumulative_allocated_bytes", 0U) | |
| ::pw::StatusWithSize | get_num_allocations () const |
| PW_METRIC (num_allocations, "num_allocations", 0U) | |
| ::pw::StatusWithSize | get_num_deallocations () const |
| PW_METRIC (num_deallocations, "num_deallocations", 0U) | |
| ::pw::StatusWithSize | get_num_resizes () const |
| PW_METRIC (num_resizes, "num_resizes", 0U) | |
| ::pw::StatusWithSize | get_num_reallocations () const |
| PW_METRIC (num_reallocations, "num_reallocations", 0U) | |
| ::pw::StatusWithSize | get_num_free_blocks () const |
| PW_METRIC (num_free_blocks, "num_free_blocks", 0U) | |
| ::pw::StatusWithSize | get_smallest_free_block_size () const |
| PW_METRIC (smallest_free_block_size, "smallest_free_block_size", 0U) | |
| ::pw::StatusWithSize | get_largest_free_block_size () const |
| PW_METRIC (largest_free_block_size, "largest_free_block_size", 0U) | |
| ::pw::StatusWithSize | get_num_failures () const |
| PW_METRIC (num_failures, "num_failures", 0U) | |
| ::pw::StatusWithSize | get_unfulfilled_bytes () const |
| PW_METRIC (unfulfilled_bytes, "unfulfilled_bytes", 0U) | |
Public Member Functions inherited from pw::allocator::NoMetrics | |
| ::pw::StatusWithSize | get_requested_bytes () const |
| ::pw::StatusWithSize | get_peak_requested_bytes () const |
| ::pw::StatusWithSize | get_cumulative_requested_bytes () const |
| ::pw::StatusWithSize | get_allocated_bytes () const |
| ::pw::StatusWithSize | get_peak_allocated_bytes () const |
| ::pw::StatusWithSize | get_cumulative_allocated_bytes () const |
| ::pw::StatusWithSize | get_num_allocations () const |
| ::pw::StatusWithSize | get_num_deallocations () const |
| ::pw::StatusWithSize | get_num_resizes () const |
| ::pw::StatusWithSize | get_num_reallocations () const |
| ::pw::StatusWithSize | get_num_free_blocks () const |
| ::pw::StatusWithSize | get_smallest_free_block_size () const |
| ::pw::StatusWithSize | get_largest_free_block_size () const |
| ::pw::StatusWithSize | get_num_failures () const |
| ::pw::StatusWithSize | get_unfulfilled_bytes () const |
| void | UpdateDeferred (Allocator &) |
Static Public Member Functions | |
| static constexpr bool | requested_bytes_enabled () |
| static constexpr bool | has_requested_bytes () |
| static constexpr bool | peak_requested_bytes_enabled () |
| static constexpr bool | has_peak_requested_bytes () |
| static constexpr bool | cumulative_requested_bytes_enabled () |
| static constexpr bool | has_cumulative_requested_bytes () |
| static constexpr bool | allocated_bytes_enabled () |
| static constexpr bool | has_allocated_bytes () |
| static constexpr bool | peak_allocated_bytes_enabled () |
| static constexpr bool | has_peak_allocated_bytes () |
| static constexpr bool | cumulative_allocated_bytes_enabled () |
| static constexpr bool | has_cumulative_allocated_bytes () |
| static constexpr bool | num_allocations_enabled () |
| static constexpr bool | has_num_allocations () |
| static constexpr bool | num_deallocations_enabled () |
| static constexpr bool | has_num_deallocations () |
| static constexpr bool | num_resizes_enabled () |
| static constexpr bool | has_num_resizes () |
| static constexpr bool | num_reallocations_enabled () |
| static constexpr bool | has_num_reallocations () |
| static constexpr bool | num_free_blocks_enabled () |
| static constexpr bool | has_num_free_blocks () |
| static constexpr bool | smallest_free_block_size_enabled () |
| static constexpr bool | has_smallest_free_block_size () |
| static constexpr bool | largest_free_block_size_enabled () |
| static constexpr bool | has_largest_free_block_size () |
| static constexpr bool | num_failures_enabled () |
| static constexpr bool | has_num_failures () |
| static constexpr bool | unfulfilled_bytes_enabled () |
| static constexpr bool | has_unfulfilled_bytes () |
Static Public Member Functions inherited from pw::allocator::NoMetrics | |
| static constexpr bool | has_requested_bytes () |
| static constexpr bool | requested_bytes_enabled () |
| static constexpr bool | has_peak_requested_bytes () |
| static constexpr bool | peak_requested_bytes_enabled () |
| static constexpr bool | has_cumulative_requested_bytes () |
| static constexpr bool | cumulative_requested_bytes_enabled () |
| static constexpr bool | has_allocated_bytes () |
| static constexpr bool | allocated_bytes_enabled () |
| static constexpr bool | has_peak_allocated_bytes () |
| static constexpr bool | peak_allocated_bytes_enabled () |
| static constexpr bool | has_cumulative_allocated_bytes () |
| static constexpr bool | cumulative_allocated_bytes_enabled () |
| static constexpr bool | has_num_allocations () |
| static constexpr bool | num_allocations_enabled () |
| static constexpr bool | has_num_deallocations () |
| static constexpr bool | num_deallocations_enabled () |
| static constexpr bool | has_num_resizes () |
| static constexpr bool | num_resizes_enabled () |
| static constexpr bool | has_num_reallocations () |
| static constexpr bool | num_reallocations_enabled () |
| static constexpr bool | has_num_free_blocks () |
| static constexpr bool | num_free_blocks_enabled () |
| static constexpr bool | has_smallest_free_block_size () |
| static constexpr bool | smallest_free_block_size_enabled () |
| static constexpr bool | has_largest_free_block_size () |
| static constexpr bool | largest_free_block_size_enabled () |
| static constexpr bool | has_num_failures () |
| static constexpr bool | num_failures_enabled () |
| static constexpr bool | has_unfulfilled_bytes () |
| static constexpr bool | unfulfilled_bytes_enabled () |