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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/qmlprofilerextension/memoryusagemodel.h b/plugins/qmlprofilerextension/memoryusagemodel.h
index 4c4d1d8f00..2d8d535ecd 100644
--- a/plugins/qmlprofilerextension/memoryusagemodel.h
+++ b/plugins/qmlprofilerextension/memoryusagemodel.h
@@ -34,7 +34,7 @@ class MemoryUsageModel : public QmlProfiler::AbstractTimelineModel
public:
struct MemoryAllocation {
- QmlDebug::MemoryType type;
+ int typeId;
qint64 size;
qint64 allocated;
qint64 deallocated;
@@ -42,8 +42,7 @@ public:
int deallocations;
int originTypeIndex;
- MemoryAllocation(QmlDebug::MemoryType type = QmlDebug::MaximumMemoryType,
- qint64 baseAmount = 0, int originTypeIndex = -1);
+ MemoryAllocation(int typeId = -1, qint64 baseAmount = 0, int originTypeIndex = -1);
void update(qint64 amount);
};
@@ -53,7 +52,7 @@ public:
int rowMaxValue(int rowNumber) const;
int row(int index) const;
- int selectionId(int index) const;
+ int typeId(int index) const;
QColor color(int index) const;
float relativeHeight(int index) const;