template<class dictbase, class type>
void FX::FXLRUCache< dictbase, type >::cacheStats ( float *  hitrate,
float *  churn 
) const throw () [inline, inherited]

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     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:39 2009 for TnFOX by doxygen v1.4.7