summaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-11-05 05:05:53 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-11-19 00:56:46 (GMT)
commit280f67d16430ce0dcfcc31a0c88ce7156126066c (patch)
tree5903840979ca3874e20ac8edebce06c6f5a4ac28 /src/declarative/debugger
parent7aebf28291288ea6e8c1d9d28f4ed752b00dca97 (diff)
downloadQt-280f67d16430ce0dcfcc31a0c88ce7156126066c.zip
Qt-280f67d16430ce0dcfcc31a0c88ce7156126066c.tar.gz
Qt-280f67d16430ce0dcfcc31a0c88ce7156126066c.tar.bz2
Add additional trace range data.
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r--src/declarative/debugger/qdeclarativedebugtrace.cpp15
-rw-r--r--src/declarative/debugger/qdeclarativedebugtrace_p.h2
2 files changed, 17 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugtrace.cpp b/src/declarative/debugger/qdeclarativedebugtrace.cpp
index 7f970bf..314db70 100644
--- a/src/declarative/debugger/qdeclarativedebugtrace.cpp
+++ b/src/declarative/debugger/qdeclarativedebugtrace.cpp
@@ -86,6 +86,12 @@ void QDeclarativeDebugTrace::rangeData(RangeType t, const QString &data)
traceInstance()->rangeDataImpl(t, data);
}
+void QDeclarativeDebugTrace::rangeData(RangeType t, const QUrl &data)
+{
+ if (QDeclarativeDebugService::isDebuggingEnabled())
+ traceInstance()->rangeDataImpl(t, data);
+}
+
void QDeclarativeDebugTrace::endRange(RangeType t)
{
if (QDeclarativeDebugService::isDebuggingEnabled())
@@ -119,6 +125,15 @@ void QDeclarativeDebugTrace::rangeDataImpl(RangeType range, const QString &rData
processMessage(rd);
}
+void QDeclarativeDebugTrace::rangeDataImpl(RangeType range, const QUrl &rData)
+{
+ if (status() != Enabled || !m_enabled)
+ return;
+
+ QDeclarativeDebugData rd = {m_timer.elapsed(), (int)RangeData, (int)range, rData.toEncoded(QUrl::FormattingOption(0x100))};
+ processMessage(rd);
+}
+
void QDeclarativeDebugTrace::endRangeImpl(RangeType range)
{
if (status() != Enabled || !m_enabled)
diff --git a/src/declarative/debugger/qdeclarativedebugtrace_p.h b/src/declarative/debugger/qdeclarativedebugtrace_p.h
index 86c0987..3f9b904 100644
--- a/src/declarative/debugger/qdeclarativedebugtrace_p.h
+++ b/src/declarative/debugger/qdeclarativedebugtrace_p.h
@@ -96,6 +96,7 @@ public:
static void startRange(RangeType);
static void rangeData(RangeType, const QString &);
+ static void rangeData(RangeType, const QUrl &);
static void endRange(RangeType);
QDeclarativeDebugTrace();
@@ -105,6 +106,7 @@ private:
void addEventImpl(EventType);
void startRangeImpl(RangeType);
void rangeDataImpl(RangeType, const QString &);
+ void rangeDataImpl(RangeType, const QUrl &);
void endRangeImpl(RangeType);
void processMessage(const QDeclarativeDebugData &);
void sendMessages();