X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fqmlprofiler%2Fprofiledata.h;h=f5d726916c8d685870fee119b8fc89bbd5413fe4;hb=0284817d6cd7e17afa8da26ee6e9199100754446;hp=4dd12f7fd38dd81305cb63accc94a17eaed43097;hpb=377eb94eb19dafeca20d12bc6b624f1779fae514;p=profile%2Fivi%2Fqtdeclarative.git diff --git a/tools/qmlprofiler/profiledata.h b/tools/qmlprofiler/profiledata.h index 4dd12f7..f5d7269 100644 --- a/tools/qmlprofiler/profiledata.h +++ b/tools/qmlprofiler/profiledata.h @@ -47,11 +47,11 @@ #include #include -struct DeclarativeEvent; +struct QmlEvent; struct V8Event; -typedef QHash DeclarativeEventHash; -typedef QList DeclarativeEvents; +typedef QHash QmlEventHash; +typedef QList QmlEvents; typedef QList V8Events; struct EventLocation @@ -64,32 +64,32 @@ struct EventLocation int column; }; -struct DeclarativeEventSub { - DeclarativeEventSub(DeclarativeEvent *from) +struct QmlEventSub { + QmlEventSub(QmlEvent *from) : reference(from), duration(0), calls(0), inLoopPath(false) {} - DeclarativeEventSub(DeclarativeEventSub *from) + QmlEventSub(QmlEventSub *from) : reference(from->reference), duration(from->duration), calls(from->calls), inLoopPath(from->inLoopPath) {} - DeclarativeEvent *reference; + QmlEvent *reference; qint64 duration; qint64 calls; bool inLoopPath; }; -struct DeclarativeEvent +struct QmlEvent { - DeclarativeEvent(); - ~DeclarativeEvent(); + QmlEvent(); + ~QmlEvent(); QString displayname; QString eventHashStr; QString details; EventLocation location; QQmlProfilerService::RangeType eventType; - QHash parentHash; - QHash childrenHash; + QHash parentHash; + QHash childrenHash; qint64 duration; qint64 calls; qint64 minTime; @@ -100,7 +100,7 @@ struct DeclarativeEvent int eventId; bool isBindingLoop; - DeclarativeEvent &operator=(const DeclarativeEvent &ref); + QmlEvent &operator=(const QmlEvent &ref); }; struct V8EventSub { @@ -143,8 +143,8 @@ public: explicit ProfileData(QObject *parent = 0); ~ProfileData(); - DeclarativeEvents getDeclarativeEvents() const; - DeclarativeEvent *declarativeEvent(int eventId) const; + QmlEvents getQmlEvents() const; + QmlEvent *qmlEvent(int eventId) const; const V8Events& getV8Events() const; V8Event *v8Event(int eventId) const; @@ -184,7 +184,7 @@ public: Q_INVOKABLE qint64 traceStartTime() const; Q_INVOKABLE qint64 traceEndTime() const; Q_INVOKABLE qint64 traceDuration() const; - Q_INVOKABLE qint64 declarativeMeasuredTime() const; + Q_INVOKABLE qint64 qmlMeasuredTime() const; Q_INVOKABLE qint64 v8MeasuredTime() const; void showErrorDialog(const QString &st ) const; @@ -205,7 +205,7 @@ signals: public slots: void clear(); - void addDeclarativeEvent(QQmlProfilerService::RangeType type, + void addQmlEvent(QQmlProfilerService::RangeType type, qint64 startTime, qint64 length, const QStringList &data, const EventLocation &location);