diff options
Diffstat (limited to 'tests/auto/shared/perfparsertestclient.h')
-rw-r--r-- | tests/auto/shared/perfparsertestclient.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/auto/shared/perfparsertestclient.h b/tests/auto/shared/perfparsertestclient.h index 8e6b7d5..fbb56a3 100644 --- a/tests/auto/shared/perfparsertestclient.h +++ b/tests/auto/shared/perfparsertestclient.h @@ -25,6 +25,10 @@ #include <QVariant> #include <QVector> +QT_BEGIN_NAMESPACE +class QTextStream; +QT_END_NAMESPACE + class PerfParserTestClient : public QObject { Q_OBJECT @@ -48,12 +52,18 @@ public: { }; + struct ThreadStartEvent : public ThreadEvent + { + qint32 ppid = -1; + }; + struct CommandEvent : public ThreadEvent { qint32 name = -1; }; struct LocationEvent { quint64 address = 0; + quint64 relAddr = 0; qint32 file = -1; quint32 pid = 0; qint32 line = -1; @@ -63,8 +73,11 @@ public: struct SymbolEvent { qint32 name = -1; + quint64 relAddr = 0; + quint64 size = 0; qint32 binary = -1; qint32 path = -1; + qint32 actualPath = -1; bool isKernel = false; }; @@ -113,12 +126,15 @@ public: LocationEvent location(qint32 id) const { return m_locations.value(id); } SymbolEvent symbol(qint32 id) const { return m_symbols.value(id); } - TracePointFormatEvent tracePointFormat(qint32 id) { return m_tracePointFormats.value(id); } + TracePointFormatEvent tracePointFormat(qint32 id) const { return m_tracePointFormats.value(id); } + + void convertToText(QTextStream &output) const; private: QVector<QByteArray> m_strings; QVector<AttributeEvent> m_attributes; QHash<qint32, CommandEvent> m_commands; + QVector<ThreadStartEvent> m_threadStarts; QVector<ThreadEndEvent> m_threadEnds; QVector<LocationEvent> m_locations; QHash<qint32, SymbolEvent> m_symbols; |