Class utilization_metrics

Inheritance Relationships

Base Type

  • public rmetrics::base_metrics

Derived Type

Class Documentation

class utilization_metrics : public virtual rmetrics::base_metrics

Interface defining utilization metrics that can be collected on carepr::arena_cache objects in the arena during their lifetime.

Subclassed by cosm::arena::repr::arena_cache

Public Functions

utilization_metrics(const utilization_metrics&) = default
utilization_metrics(void) = default
~utilization_metrics(void) override = default
virtual size_t n_blocks(void) const = 0

Get the # of blocks currently in the cache (independent of any calls to reset_metrics()).

utilization_metrics &operator=(const utilization_metrics&) = default
virtual size_t total_block_drops(void) const = 0

Should return the # of blocks a given cache has had dropped in it this timestep.

This is currently has a max of 1, due to limitations/shortcuts taken with the block drop events.

virtual size_t total_block_pickups(void) const = 0

Should return the # of blocks a given cache has had picked up from it this timestep.

This currently has a max of 1, due to limitations/shortcuts taken with the block pickup events.