Include file:
#include "mcrl2/utilities/cache_metric.h
mcrl2::utilities::
cache_metric
¶A helper class to keep track of the number of hits and misses for cache-like data structures.
mcrl2::utilities::cache_metric::
m_hit_count
¶mcrl2::utilities::cache_metric::
m_miss_count
¶hit
()¶Should be called when searching the cache was a hit.
message
() const¶Returns: A message stating x hits, y misses (z %), where x,y,z indicate the number of hits, misses and percentage respectively.
miss
()¶Should be called when searching the cache was a miss.
reset
()¶Resets the cache counters.