template<class dictbase, class type>
Returns operating statistics about the cache. hitrate is a percentage of hits versus total lookups and churn is a percentage of items flushed versus total lookups. Definition at line 167 of file FXLRUCache.h. Referenced by FX::FXLRUCache< FX::QDict< type > >::statistics(). 00168 { 00169 FXuint lookups=stats.hits+stats.misses; 00170 if(!lookups) lookups=1; 00171 if(hitrate) 00172 *hitrate=100.0*stats.hits/lookups; 00173 if(churn) 00174 *churn=100.0*stats.flushed/lookups; 00175 }
|