summaryrefslogtreecommitdiffstats
path: root/qtools/qgcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qgcache.cpp')
-rw-r--r--qtools/qgcache.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qtools/qgcache.cpp b/qtools/qgcache.cpp
index 89282c7..e5dd8de 100644
--- a/qtools/qgcache.cpp
+++ b/qtools/qgcache.cpp
@@ -655,6 +655,16 @@ void QGCache::statistics() const
#endif
}
+int QGCache::hits() const
+{
+ return lruList->hits;
+}
+
+int QGCache::misses() const
+{
+ return lruList->finds - lruList->hits;
+}
+
/*****************************************************************************
QGCacheIterator member functions