aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofilerextension/memoryusagemodel.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-07-11 11:01:47 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-07-11 15:07:17 +0300
commit80d938c6a31be9f45f0ceaa289a5f8c04c8f33dc (patch)
treecd44bec9870e8ee4428105655452127548a90930 /plugins/qmlprofilerextension/memoryusagemodel.h
parent2d93a34d18c3006358e55589fd4e2c79928a6148 (diff)
Be more verbose about aggregated memory allocationsqp-v3.2.0
The memory profiler aggregates allocations originating from the same QML/JS constructs into one event. This change makes sure the origins are really the same calls, not only the same functions and gives some more details on hom much memory was allocated or deallocated in how many steps. Change-Id: I784c521855122f7b3b894417de0afb216766e2d4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'plugins/qmlprofilerextension/memoryusagemodel.h')
-rw-r--r--plugins/qmlprofilerextension/memoryusagemodel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/qmlprofilerextension/memoryusagemodel.h b/plugins/qmlprofilerextension/memoryusagemodel.h
index 7559c9c749..e345381250 100644
--- a/plugins/qmlprofilerextension/memoryusagemodel.h
+++ b/plugins/qmlprofilerextension/memoryusagemodel.h
@@ -37,8 +37,15 @@ public:
struct MemoryAllocation {
QmlDebug::MemoryType type;
qint64 size;
- qint64 delta;
+ qint64 allocated;
+ qint64 deallocated;
+ int allocations;
+ int deallocations;
int originTypeIndex;
+
+ MemoryAllocation(QmlDebug::MemoryType type = QmlDebug::MaximumMemoryType,
+ qint64 baseAmount = 0, int originTypeIndex = -1);
+ void update(qint64 amount);
};
MemoryUsageModel(QObject *parent = 0);