From d0341c3f3c7134f4f5912dd00f187ef33b6aa849 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 17 Dec 2015 11:05:06 +0100 Subject: This is how we can look at the memory layout --- tests/dummyresourcebenchmark.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/dummyresourcebenchmark.cpp b/tests/dummyresourcebenchmark.cpp index 25fb96b..aad86c0 100644 --- a/tests/dummyresourcebenchmark.cpp +++ b/tests/dummyresourcebenchmark.cpp @@ -109,6 +109,9 @@ private Q_SLOTS: auto diskUsage = DummyResource::diskUsage("org.kde.dummy.instance1"); qDebug() << "Database size [kb]: " << diskUsage/1024; + + // Print memory layout, RSS is what is in memory + // std::system("exec pmap -x \"$PPID\""); } void testQueryByUid() @@ -197,6 +200,9 @@ private Q_SLOTS: row.setValue("total", (qreal)num/allProcessedTime); dataset.insertRow(row); HAWD::Formatter::print(dataset); + + // Print memory layout, RSS is what is in memory + // std::system("exec pmap -x \"$PPID\""); } void testCreateCommand() -- cgit v1.2.3