QmlProfiler: Add data stream operators for QmlEvent

We try to further compress the QML events when saving as we can use the
additional space in that case.

Change-Id: Ida308963685169d1daabd7936612628fd4d265ae
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-05-04 15:41:29 +02:00
parent ca5d9659e1
commit bb7925b4ef
4 changed files with 254 additions and 1 deletions

View File

@@ -292,8 +292,14 @@ private:
if (m_dataType & External)
free(m_data.external);
}
friend QDataStream &operator>>(QDataStream &stream, QmlEvent &event);
friend QDataStream &operator<<(QDataStream &stream, const QmlEvent &event);
};
QDataStream &operator>>(QDataStream &stream, QmlEvent &event);
QDataStream &operator<<(QDataStream &stream, const QmlEvent &event);
} // namespace QmlProfiler
Q_DECLARE_METATYPE(QmlProfiler::QmlEvent)