diff options
author | Ulf Hermann <[email protected]> | 2018-03-23 10:14:48 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2018-04-12 09:13:22 +0000 |
commit | 5de5794c49543d2274fc5e71b8e540cdf3bc6ce0 (patch) | |
tree | c3941704beb556d1a7f03f1c7a4adead35ead46a /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | abfe7fd3c7ab188213b30a1c6bbe8c3c6dcd4d68 (diff) |
QmlProfiler: Disambiguate parent/child terminology in statistics
When talking about call stacks call them "caller" and "callee". Call
the invisible root item of the model "rootItem".
Change-Id: I551b23f1491d391145193901d3f3a29ab3942089
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index c7cd5009ed7..804d68e5e2d 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -140,7 +140,7 @@ void QmlProfilerStatisticsModel::clear() void QmlProfilerStatisticsModel::setRelativesModel(QmlProfilerStatisticsRelativesModel *relative, QmlProfilerStatisticsRelation relation) { - if (relation == QmlProfilerStatisticsParents) + if (relation == QmlProfilerStatisticsCallers) m_callersModel = relative; else m_calleesModel = relative; @@ -311,11 +311,11 @@ void QmlProfilerStatisticsRelativesModel::loadEvent(RangeType type, const QmlEve stack.push({event.timestamp(), event.typeIndex()}); break; case RangeEnd: { - int parentTypeIndex = stack.count() > 1 ? stack[stack.count() - 2].typeId : -1; - int relativeTypeIndex = (m_relation == QmlProfilerStatisticsParents) ? parentTypeIndex : + int callerTypeIndex = stack.count() > 1 ? stack[stack.count() - 2].typeId : -1; + int relativeTypeIndex = (m_relation == QmlProfilerStatisticsCallers) ? callerTypeIndex : event.typeIndex(); - int selfTypeIndex = (m_relation == QmlProfilerStatisticsParents) ? event.typeIndex() : - parentTypeIndex; + int selfTypeIndex = (m_relation == QmlProfilerStatisticsCallers) ? event.typeIndex() : + callerTypeIndex; QmlStatisticsRelativesMap &relativesMap = m_data[selfTypeIndex]; QmlStatisticsRelativesMap::Iterator it = relativesMap.find(relativeTypeIndex); |