15 #include "cacheStats.h"
28 _total_cache_size = 0;
60 write(ostream &out,
const char *name)
const {
62 out << name <<
" cache: " << _cache_hits <<
" hits, "
63 << _cache_misses <<
" misses\n"
64 << _cache_adds + _cache_new_adds <<
"(" << _cache_new_adds <<
") adds(new), "
65 << _cache_dels <<
" dels, "
66 << _total_cache_size <<
" / " << _num_states <<
" = "
67 << (double)_total_cache_size / (
double)_num_states
68 << " average cache size\n";
static ClockObject * get_global_clock()
Returns a pointer to the global ClockObject.
This is a convenience class to specialize ConfigVariable as a boolean type.
void reset(double now)
Reinitializes just those parts of the CacheStats that should be reset between each reporting interval...
This is a convenience class to specialize ConfigVariable as a floating-point type.
void init()
Initializes the CacheStats for the first time.