QmlProfiler: Drop duration from QmlEvent

It isn't used anymore.

Change-Id: I432bebbd9ddde15baa22a17d339ac724ddb5fe59
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-05-04 12:48:35 +02:00
parent 1e8996b438
commit bc18fafffd

View File

@@ -37,33 +37,31 @@
namespace QmlProfiler { namespace QmlProfiler {
struct QmlEvent { struct QmlEvent {
QmlEvent() : m_timestamp(-1), m_duration(0), m_typeIndex(-1), m_dataType(Inline8Bit), QmlEvent() : m_timestamp(-1), m_typeIndex(-1), m_dataType(Inline8Bit), m_dataLength(0) {}
m_dataLength(0) {}
template<typename Number> template<typename Number>
QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, std::initializer_list<Number> list) QmlEvent(qint64 timestamp, int typeIndex, std::initializer_list<Number> list)
: m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) : m_timestamp(timestamp), m_typeIndex(typeIndex)
{ {
assignNumbers<std::initializer_list<Number>, Number>(list); assignNumbers<std::initializer_list<Number>, Number>(list);
} }
QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, const QString &data) QmlEvent(qint64 timestamp, int typeIndex, const QString &data)
: m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) : m_timestamp(timestamp), m_typeIndex(typeIndex)
{ {
assignNumbers<QByteArray, qint8>(data.toUtf8()); assignNumbers<QByteArray, qint8>(data.toUtf8());
} }
template<typename Number> template<typename Number>
QmlEvent(qint64 timestamp, qint64 duration, int typeIndex, const QVector<Number> &data) QmlEvent(qint64 timestamp, int typeIndex, const QVector<Number> &data)
: m_timestamp(timestamp), m_duration(duration), m_typeIndex(typeIndex) : m_timestamp(timestamp), m_typeIndex(typeIndex)
{ {
assignNumbers<QVector<Number>, Number>(data); assignNumbers<QVector<Number>, Number>(data);
} }
QmlEvent(const QmlEvent &other) QmlEvent(const QmlEvent &other)
: m_timestamp(other.m_timestamp), m_duration(other.m_duration), : m_timestamp(other.m_timestamp), m_typeIndex(other.m_typeIndex),
m_typeIndex(other.m_typeIndex), m_dataType(other.m_dataType), m_dataType(other.m_dataType), m_dataLength(other.m_dataLength)
m_dataLength(other.m_dataLength)
{ {
assignData(other); assignData(other);
} }
@@ -73,7 +71,6 @@ struct QmlEvent {
if (this != &other) { if (this != &other) {
clearPointer(); clearPointer();
m_timestamp = other.m_timestamp; m_timestamp = other.m_timestamp;
m_duration = other.m_duration;
m_typeIndex = other.m_typeIndex; m_typeIndex = other.m_typeIndex;
m_dataType = other.m_dataType; m_dataType = other.m_dataType;
m_dataLength = other.m_dataLength; m_dataLength = other.m_dataLength;
@@ -90,9 +87,6 @@ struct QmlEvent {
qint64 timestamp() const { return m_timestamp; } qint64 timestamp() const { return m_timestamp; }
void setTimestamp(qint64 timestamp) { m_timestamp = timestamp; } void setTimestamp(qint64 timestamp) { m_timestamp = timestamp; }
qint64 duration() const { return m_duration; }
void setDuration(qint64 duration) { m_duration = duration; }
int typeIndex() const { return m_typeIndex; } int typeIndex() const { return m_typeIndex; }
void setTypeIndex(int typeIndex) { m_typeIndex = typeIndex; } void setTypeIndex(int typeIndex) { m_typeIndex = typeIndex; }
@@ -213,7 +207,6 @@ private:
}; };
qint64 m_timestamp; qint64 m_timestamp;
qint64 m_duration;
static const int s_internalDataLength = 8; static const int s_internalDataLength = 8;
union { union {