aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/qmlprofilerdata.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-02-19 18:11:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-06 09:51:33 +0200
commit2371ec96dad2a8433df212858674b53d9b213c9e (patch)
treedd553fca679d1eafe6e3bc17d5140d1d697868a7 /tools/qmlprofiler/qmlprofilerdata.h
parent788b8bbff92b8fe7563501db7708c2ac87b4e361 (diff)
Properly support all events in trace files and clean up a bit.
In particular, use both message and range type to identify events so that we can get rid of the messy type aliasing. Task-number: QTBUG-36953 Change-Id: I691a7501aa285f78f7ce5b7017ef50628f44fcf7 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerdata.h')
-rw-r--r--tools/qmlprofiler/qmlprofilerdata.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/qmlprofiler/qmlprofilerdata.h b/tools/qmlprofiler/qmlprofilerdata.h
index a5d55ed6f6..47da0effbf 100644
--- a/tools/qmlprofiler/qmlprofilerdata.h
+++ b/tools/qmlprofiler/qmlprofilerdata.h
@@ -64,7 +64,8 @@ public:
static QString getHashStringForQmlEvent(const QmlEventLocation &location, int eventType);
static QString getHashStringForV8Event(const QString &displayName, const QString &function);
- static QString qmlRangeTypeAsString(QQmlProfilerService::RangeType typeEnum);
+ static QString qmlRangeTypeAsString(QQmlProfilerService::RangeType type);
+ static QString qmlMessageAsString(QQmlProfilerService::Message type);
static QString rootEventName();
static QString rootEventDescription();
@@ -89,6 +90,11 @@ public slots:
void addV8Event(int depth, const QString &function, const QString &filename,
int lineNumber, double totalTime, double selfTime);
void addFrameEvent(qint64 time, int framerate, int animationcount, int threadId);
+ void addSceneGraphFrameEvent(QQmlProfilerService::SceneGraphFrameType type, qint64 time,
+ qint64 numericData1, qint64 numericData2, qint64 numericData3,
+ qint64 numericData4, qint64 numericData5);
+ void addPixmapCacheEvent(QQmlProfilerService::PixmapEventType type, qint64 time,
+ const QmlEventLocation &location, int width, int height, int refcount);
void complete();
bool save(const QString &filename);