diff options
Diffstat (limited to 'src/libs/qmljsdebugclient/qv8profilerclient.cpp')
-rw-r--r-- | src/libs/qmljsdebugclient/qv8profilerclient.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libs/qmljsdebugclient/qv8profilerclient.cpp b/src/libs/qmljsdebugclient/qv8profilerclient.cpp index 432ed6c41c..7853efcdb3 100644 --- a/src/libs/qmljsdebugclient/qv8profilerclient.cpp +++ b/src/libs/qmljsdebugclient/qv8profilerclient.cpp @@ -118,6 +118,16 @@ void QV8ProfilerClient::setRecording(bool v) emit recordingChanged(v); } +void QV8ProfilerClient::setRecordingFromServer(bool v) +{ + if (v == d->recording) + return; + + d->recording = v; + + emit recordingChanged(v); +} + void QV8ProfilerClient::statusChanged(Status /*status*/) { emit enabledChanged(); @@ -133,7 +143,10 @@ void QV8ProfilerClient::messageReceived(const QByteArray &data) stream >> messageType; if (messageType == V8Complete) { + setRecordingFromServer(false); emit complete(); + } else if (messageType == V8ProfilingStarted) { + setRecordingFromServer(true); } else if (messageType == V8Entry) { QString filename; QString function; |