52 write(std::ostream &out,
const char *name)
const {
54 out << name <<
" cache: " << _cache_hits <<
" hits, "
55 << _cache_misses <<
" misses\n"
56 << _cache_adds + _cache_new_adds <<
"(" << _cache_new_adds <<
") adds(new), "
57 << _cache_dels <<
" dels, "
58 << _total_cache_size <<
" / " << _num_states <<
" = "
59 << (double)_total_cache_size / (
double)_num_states
60 <<
" average cache size\n";
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void reset(double now)
Reinitializes just those parts of the CacheStats that should be reset between each reporting interval...
void init()
Initializes the CacheStats for the first time.
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating- point type.