20 if (UNLIKELY(_cache_report)) {
22 if (now - _last_reset < _cache_report_interval) {
82 _total_cache_size += count;
static ClockObject * get_global_clock()
Returns a pointer to the global ClockObject.
void inc_dels()
Increments by 1 the count of elements removed from the cache.
static std::ostream & out()
A convenient way to get the ostream that should be written to for a Notify- type message.
void reset(double now)
Reinitializes just those parts of the CacheStats that should be reset between each reporting interval...
void maybe_report(const char *name)
Outputs a report if enough time has elapsed.
void inc_hits()
Increments by 1 the count of cache hits.
void inc_misses()
Increments by 1 the count of cache misses.
void add_total_size(int count)
Adds the indicated count (positive or negative) to the total number of entries for the cache (net occ...
get_real_time
Returns the actual number of seconds elapsed since the ClockObject was created, or since it was last ...
void add_num_states(int count)
Adds the indicated count (positive or negative) to the total count of individual RenderState or Trans...
void inc_adds(bool is_new)
Increments by 1 the count of elements added to the cache.