diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-03-17 12:04:23 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-03-17 15:03:38 +0100 |
commit | 71da9c4ac8b46b81d4e221938234ba2b102806fd (patch) | |
tree | e10806475d9b92e8deb53759c137b42d84491e4a /src/plugins/qmlprofiler/qmlprofilertracefile.cpp | |
parent | 627e2b48072794e9b8cb0f817dd08c0678f60b17 (diff) | |
download | qt-creator-71da9c4ac8b46b81d4e221938234ba2b102806fd.tar.gz |
QmlProfiler: Save/Load thread ids in trace files
Without this, a trace will change if you save and then reload it.
Change-Id: I78bc6c58df2eb79305c069a5e45f62f9bf58c4ce
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertracefile.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertracefile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp index b7e99c1117..3b8217d2b5 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp @@ -317,6 +317,8 @@ void QmlProfilerFileReader::loadProfilerDataModel(QXmlStreamReader &stream) range.numericData1 = attributes.value(_("framerate")).toString().toLongLong(); if (attributes.hasAttribute(_("animationcount"))) range.numericData2 = attributes.value(_("animationcount")).toString().toLongLong(); + if (attributes.hasAttribute(_("thread"))) + range.numericData3 = attributes.value(_("thread")).toString().toLongLong(); if (attributes.hasAttribute(_("width"))) range.numericData1 = attributes.value(_("width")).toString().toLongLong(); if (attributes.hasAttribute(_("height"))) @@ -483,6 +485,7 @@ void QmlProfilerFileWriter::save(QIODevice *device) stream.writeAttribute(_("framerate"), QString::number(range.numericData1)); stream.writeAttribute(_("animationcount"), QString::number(range.numericData2)); + stream.writeAttribute(_("thread"), QString::number(range.numericData3)); } // special: pixmap cache event |