Skip to content

Commit 475ac37

Browse files
nephrosnephros
authored andcommitted
Print hotcache stats on PM exit
1 parent 7df9ddb commit 475ac37

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/bin/patchmanager-daemon/patchmanagerobject.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ PatchManagerObject::~PatchManagerObject()
522522
connection.unregisterService(DBUS_SERVICE_NAME);
523523
connection.unregisterObject(DBUS_PATH_NAME);
524524
}
525+
if (m_filter.active()) {
526+
qDebug() << m_filter.stats();
527+
}
525528
}
526529

527530
void PatchManagerObject::registerDBus()
@@ -3027,7 +3030,7 @@ void PatchManagerObject::setupFilter()
30273030
*
30283031
* Checking for presence is done using QCache::object() (or
30293032
* QCache::operator[]), not QCache::contains() in order to have the cache
3030-
* notice "usage" of th cached object.
3033+
* notice "usage" of the cached object.
30313034
*
30323035
* \sa m_filter
30333036
*/
@@ -3038,7 +3041,7 @@ PatchManagerFilter::PatchManagerFilter(QObject *parent, int maxCost )
30383041
{
30393042
}
30403043

3041-
/* initialize the static members */
3044+
/* initialize the "static members", i.e. a list of very frequesntly accessed files. */
30423045
/* only use relatively stable sonames here. No symlinks! */
30433046
const QStringList PatchManagerFilter::libList = QStringList({
30443047
"/usr/lib64/libtls-padding.so",

0 commit comments

Comments
 (0)