aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofilerextension/memoryusagemodel.h
diff options
context:
space:
mode:
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);