aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/memoryusagemodel.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-06-03 14:02:51 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-06-06 14:59:28 +0000
commitc4079d6ae7ab69e0d27ade08e75ab2cfd69d3548 (patch)
tree8f806232f089de0561c03add784737dbcf054338 /src/plugins/qmlprofiler/memoryusagemodel.h
parentbcbfd93ee7db6f585e18199820dec92b34f3d995 (diff)
QmlProfiler: Clean up MemoryUsageModel
Don't reimplement locationFromTypeId, make methods public when they are public in the base class, remove redundant QVariant ctors, inline memoryTypeName() into the only place where it's used. Change-Id: I5d780cf27c90a277c13b117c25c80ccce5a4182b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.h')
-rw-r--r--src/plugins/qmlprofiler/memoryusagemodel.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.h b/src/plugins/qmlprofiler/memoryusagemodel.h
index b7b36d000b2..8f55ff6607e 100644
--- a/src/plugins/qmlprofiler/memoryusagemodel.h
+++ b/src/plugins/qmlprofiler/memoryusagemodel.h
@@ -67,7 +67,6 @@ public:
QVariantList labels() const override;
QVariantMap details(int index) const override;
-protected:
bool accepted(const QmlEventType &type) const override;
void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
void finalize() override;
@@ -82,8 +81,6 @@ private:
qint64 startTime;
};
- static QString memoryTypeName(int type);
-
QVector<MemoryAllocationItem> m_data;
QStack<RangeStackFrame> m_rangeStack;
qint64 m_maxSize = 1;