aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilertracefile.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-04-28 15:40:02 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-05-06 10:36:40 +0000
commit215c0533d20950d412e304dc41bc0bc93afac84f (patch)
treed6ae94409a4d407b3d2bbb15097f8cd14c093fc3 /src/plugins/qmlprofiler/qmlprofilertracefile.cpp
parenta53780924de223f56c5294d5ab9f501a602585bc (diff)
QmlProfiler: Rename QmlEvent::startTime to "timestamp"
As many events are instantaneous and we're going to drop the duration property soon, this is more fitting. Change-Id: I6e13dd076a5b9df16aed44bf9f631ea5760e9cbf Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertracefile.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertracefile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp
index 7a49f6175e..5e93f0b04a 100644
--- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp
@@ -369,7 +369,7 @@ void QmlProfilerFileReader::loadEvents(QXmlStreamReader &stream)
continue;
}
- event.setStartTime(attributes.value(_("startTime")).toLongLong());
+ event.setTimestamp(attributes.value(_("startTime")).toLongLong());
if (attributes.hasAttribute(_("duration")))
event.setDuration(attributes.value(_("duration")).toLongLong());
@@ -591,14 +591,13 @@ void QmlProfilerFileWriter::save(QIODevice *device)
const QmlEvent &event = m_events[rangeIndex];
stream.writeStartElement(_("range"));
- stream.writeAttribute(_("startTime"), QString::number(event.startTime()));
+ stream.writeAttribute(_("startTime"), QString::number(event.timestamp()));
if (event.duration() > 0) // no need to store duration of instantaneous events
stream.writeAttribute(_("duration"), QString::number(event.duration()));
stream.writeAttribute(_("eventIndex"), QString::number(event.typeIndex()));
const QmlEventType &type = m_eventTypes[event.typeIndex()];
-
if (type.message == Event) {
if (type.detailType == AnimationFrame) {
// special: animation event