Commit 34f48ea0 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: improve location lookup a bit

It's not a good idea to copy the event location for every single lookup
and there is not point in always reconstructing the label strings,

Change-Id: I2cea8a2a93b31d2c32bd2a27ae1d3b0bd26df6f6
Reviewed-by: default avatarKai Koehne <>
parent 75b5e6fa
......@@ -343,12 +343,12 @@ const QVariantMap RangeTimelineModel::getEventLocation(int index) const
QVariantMap result;
int eventId = getEventId(index);
QmlDebug::QmlEventLocation location
const QmlDebug::QmlEventLocation &location
= d->modelManager->qmlModel()->getEventTypes().at(eventId).location;
result.insert(QLatin1String("file"), location.filename);
result.insert(QLatin1String("line"), location.line);
result.insert(QLatin1String("column"), location.column);
result.insert(QStringLiteral("file"), location.filename);
result.insert(QStringLiteral("line"), location.line);
result.insert(QStringLiteral("column"), location.column);
return result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment