template<class dictbase, class type>
void FX::FXLRUCache< dictbase, type >::statistics (  )  const [inline, inherited]

Prints some statistics about the hash table (only debug builds).

Definition at line 177 of file FXLRUCache.h.

00178     {
00179 #ifdef DEBUG
00180         float full, slotsspread, avrgkeysperslot, _spread, hitrate, churn;
00181         spread(&full, &slotsspread, &avrgkeysperslot, &_spread);
00182         cacheStats(&hitrate, &churn);
00183         fxmessage("Dictionary size=%d, items=%d, full=%f%%, slot spread=%f%%, avrg keys per slot=%f, overall spread=%f%%\n"
00184                   "Cache hit rate=%d%%, churn=%d%%\n", size(), count(), full, slotsspread, avrgkeysperslot, _spread, hitrate, churn);
00185 #endif
00186     }


(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