diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-26 09:27:59 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-27 09:42:34 +0000 |
commit | 1b9b59a45f5f044e8a07c66c09965e550a8e8cee (patch) | |
tree | afc5459c1a2eeb8a4216d79931585de2ddf82030 /src/plugins/qmlprofiler/memoryusagemodel.h | |
parent | 1b650190d84d16184aaa71cd926bcda217c4c2c1 (diff) |
QmlProfiler: Use origin type's ID for memory allocations
We want the editor to jump to the right source location when selecting
different events from the timeline. If all memory events have the same
ID this doesn't work. Now they of course have the IDs of the origin
events, but that's not a problem because when you select first the
memory event and then its origin, the editor position does in fact not
have to change.
As an added benefit, the typeId cannot be -1 anymore now.
Change-Id: I95520eeb3e6902e046f3f552c74dba776e7c8b62
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.h')
-rw-r--r-- | src/plugins/qmlprofiler/memoryusagemodel.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.h b/src/plugins/qmlprofiler/memoryusagemodel.h index 6d8136a5555..b7b36d000b2 100644 --- a/src/plugins/qmlprofiler/memoryusagemodel.h +++ b/src/plugins/qmlprofiler/memoryusagemodel.h @@ -41,15 +41,14 @@ class MemoryUsageModel : public QmlProfilerTimelineModel public: struct MemoryAllocationItem { - int typeId; qint64 size; qint64 allocated; qint64 deallocated; int allocations; int deallocations; - int originTypeIndex; + int typeId; - MemoryAllocationItem(int typeId = -1, qint64 baseAmount = 0, int originTypeIndex = -1); + MemoryAllocationItem(int typeId = -1, qint64 baseAmount = 0); void update(qint64 amount); }; |