2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-06-28 15:51:20 +02:00
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** Copyright (C) 2015 The Qt Company Ltd.
|
|
|
|
|
** Contact: http://www.qt.io/licensing
|
2011-06-28 15:51:20 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-06-28 15:51:20 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2015-01-14 18:07:15 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms and
|
|
|
|
|
** conditions see http://www.qt.io/terms-conditions. For further information
|
2014-10-01 13:21:18 +02:00
|
|
|
** use the contact form at http://www.qt.io/contact-us.
|
2011-06-28 15:51:20 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
2014-10-01 13:21:18 +02:00
|
|
|
** General Public License version 2.1 or version 3 as published by the Free
|
|
|
|
|
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
|
|
|
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
|
|
|
** following information to ensure the GNU Lesser General Public License
|
|
|
|
|
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2012-10-02 09:12:39 +02:00
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** In addition, as a special exception, The Qt Company gives you certain additional
|
|
|
|
|
** rights. These rights are described in The Qt Company LGPL Exception
|
2011-06-28 15:51:20 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-06-28 15:51:20 +02:00
|
|
|
|
|
|
|
|
#include "qmlprofilertraceclient.h"
|
2014-03-12 17:20:52 +01:00
|
|
|
#include "qmlenginecontrolclient.h"
|
2011-06-28 15:51:20 +02:00
|
|
|
|
2012-04-18 12:06:10 +02:00
|
|
|
namespace QmlDebug {
|
2011-08-05 12:58:43 +02:00
|
|
|
|
|
|
|
|
class QmlProfilerTraceClientPrivate {
|
|
|
|
|
public:
|
2014-03-12 17:20:52 +01:00
|
|
|
QmlProfilerTraceClientPrivate(QmlProfilerTraceClient *_q, QmlDebugConnection *client)
|
2011-08-24 14:38:54 +02:00
|
|
|
: q(_q)
|
2014-03-12 17:20:52 +01:00
|
|
|
, engineControl(client)
|
2011-08-24 14:38:54 +02:00
|
|
|
, inProgressRanges(0)
|
2011-08-05 12:58:43 +02:00
|
|
|
, maximumTime(0)
|
|
|
|
|
, recording(false)
|
2014-09-09 18:22:58 +02:00
|
|
|
, features(0)
|
2011-08-05 12:58:43 +02:00
|
|
|
{
|
2014-06-03 16:57:32 +02:00
|
|
|
::memset(rangeCount, 0, MaximumRangeType * sizeof(int));
|
2011-08-05 12:58:43 +02:00
|
|
|
}
|
|
|
|
|
|
2014-03-12 17:20:52 +01:00
|
|
|
void sendRecordingStatus(int engineId);
|
2011-08-24 14:38:54 +02:00
|
|
|
|
|
|
|
|
QmlProfilerTraceClient *q;
|
2014-03-12 17:20:52 +01:00
|
|
|
QmlEngineControlClient engineControl;
|
2011-08-05 12:58:43 +02:00
|
|
|
qint64 inProgressRanges;
|
2014-06-03 16:57:32 +02:00
|
|
|
QStack<qint64> rangeStartTimes[MaximumRangeType];
|
2014-06-13 16:33:30 +02:00
|
|
|
QStack<QString> rangeDatas[MaximumRangeType];
|
2014-06-03 16:57:32 +02:00
|
|
|
QStack<QmlEventLocation> rangeLocations[MaximumRangeType];
|
2012-05-02 17:53:50 +02:00
|
|
|
QStack<BindingType> bindingTypes;
|
2014-06-03 16:57:32 +02:00
|
|
|
int rangeCount[MaximumRangeType];
|
2011-08-05 12:58:43 +02:00
|
|
|
qint64 maximumTime;
|
|
|
|
|
bool recording;
|
2014-09-09 18:22:58 +02:00
|
|
|
quint64 features;
|
2011-08-05 12:58:43 +02:00
|
|
|
};
|
|
|
|
|
|
2012-04-18 12:06:10 +02:00
|
|
|
} // namespace QmlDebug
|
2011-08-05 12:58:43 +02:00
|
|
|
|
2012-04-18 12:06:10 +02:00
|
|
|
using namespace QmlDebug;
|
2011-06-28 15:51:20 +02:00
|
|
|
|
|
|
|
|
static const int GAP_TIME = 150;
|
|
|
|
|
|
2014-03-12 17:20:52 +01:00
|
|
|
void QmlProfilerTraceClientPrivate::sendRecordingStatus(int engineId)
|
2011-08-24 14:38:54 +02:00
|
|
|
{
|
|
|
|
|
QByteArray ba;
|
|
|
|
|
QDataStream stream(&ba, QIODevice::WriteOnly);
|
2014-09-09 18:22:58 +02:00
|
|
|
stream << recording << engineId; // engineId -1 is OK. It means "all of them"
|
|
|
|
|
if (recording)
|
|
|
|
|
stream << features;
|
2011-08-24 14:38:54 +02:00
|
|
|
q->sendMessage(ba);
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-09 18:22:58 +02:00
|
|
|
QmlProfilerTraceClient::QmlProfilerTraceClient(QmlDebugConnection *client, quint64 features)
|
2012-04-18 12:06:10 +02:00
|
|
|
: QmlDebugClient(QLatin1String("CanvasFrameRate"), client)
|
2014-03-12 17:20:52 +01:00
|
|
|
, d(new QmlProfilerTraceClientPrivate(this, client))
|
2011-08-05 12:58:43 +02:00
|
|
|
{
|
2014-09-09 18:22:58 +02:00
|
|
|
d->features = features;
|
2014-03-12 17:20:52 +01:00
|
|
|
connect(&d->engineControl, SIGNAL(engineAboutToBeAdded(int,QString)),
|
|
|
|
|
this, SLOT(sendRecordingStatus(int)));
|
2011-08-05 12:58:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QmlProfilerTraceClient::~QmlProfilerTraceClient()
|
|
|
|
|
{
|
2011-11-15 15:04:25 +01:00
|
|
|
//Disable profiling if started by client
|
|
|
|
|
//Profiling data will be lost!!
|
|
|
|
|
if (isRecording())
|
|
|
|
|
setRecording(false);
|
2011-08-05 12:58:43 +02:00
|
|
|
delete d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QmlProfilerTraceClient::clearData()
|
2011-06-28 15:51:20 +02:00
|
|
|
{
|
2014-06-03 16:57:32 +02:00
|
|
|
::memset(d->rangeCount, 0, MaximumRangeType * sizeof(int));
|
|
|
|
|
for (int eventType = 0; eventType < MaximumRangeType; eventType++) {
|
2012-02-13 15:26:57 +01:00
|
|
|
d->rangeDatas[eventType].clear();
|
|
|
|
|
d->rangeLocations[eventType].clear();
|
|
|
|
|
d->rangeStartTimes[eventType].clear();
|
|
|
|
|
}
|
2012-05-02 17:53:50 +02:00
|
|
|
d->bindingTypes.clear();
|
2011-08-05 12:58:43 +02:00
|
|
|
emit cleared();
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
|
|
|
|
|
2014-03-12 17:20:52 +01:00
|
|
|
void QmlProfilerTraceClient::sendRecordingStatus(int engineId)
|
2011-11-15 15:04:25 +01:00
|
|
|
{
|
2014-03-12 17:20:52 +01:00
|
|
|
d->sendRecordingStatus(engineId);
|
2011-11-15 15:04:25 +01:00
|
|
|
}
|
|
|
|
|
|
2011-11-10 17:08:07 +01:00
|
|
|
bool QmlProfilerTraceClient::isEnabled() const
|
|
|
|
|
{
|
2014-05-05 16:11:43 +02:00
|
|
|
return state() == Enabled;
|
2011-11-10 17:08:07 +01:00
|
|
|
}
|
|
|
|
|
|
2011-08-05 12:58:43 +02:00
|
|
|
bool QmlProfilerTraceClient::isRecording() const
|
2011-06-28 15:51:20 +02:00
|
|
|
{
|
2011-08-05 12:58:43 +02:00
|
|
|
return d->recording;
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QmlProfilerTraceClient::setRecording(bool v)
|
|
|
|
|
{
|
2011-08-05 12:58:43 +02:00
|
|
|
if (v == d->recording)
|
2011-06-28 15:51:20 +02:00
|
|
|
return;
|
|
|
|
|
|
2011-08-24 14:38:54 +02:00
|
|
|
d->recording = v;
|
|
|
|
|
|
2014-05-05 16:11:43 +02:00
|
|
|
if (state() == Enabled)
|
2011-11-15 15:04:25 +01:00
|
|
|
sendRecordingStatus();
|
2011-06-28 15:51:20 +02:00
|
|
|
|
|
|
|
|
emit recordingChanged(v);
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-09 18:22:58 +02:00
|
|
|
void QmlProfilerTraceClient::setFeatures(quint64 features)
|
|
|
|
|
{
|
|
|
|
|
d->features = features;
|
|
|
|
|
}
|
|
|
|
|
|
2012-02-13 15:26:57 +01:00
|
|
|
void QmlProfilerTraceClient::setRecordingFromServer(bool v)
|
|
|
|
|
{
|
|
|
|
|
if (v == d->recording)
|
|
|
|
|
return;
|
|
|
|
|
d->recording = v;
|
|
|
|
|
emit recordingChanged(v);
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-05 16:11:43 +02:00
|
|
|
void QmlProfilerTraceClient::stateChanged(State /*status*/)
|
2011-06-28 15:51:20 +02:00
|
|
|
{
|
2011-11-28 16:30:30 +01:00
|
|
|
emit enabledChanged();
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
|
|
|
|
|
{
|
|
|
|
|
QByteArray rwData = data;
|
|
|
|
|
QDataStream stream(&rwData, QIODevice::ReadOnly);
|
|
|
|
|
|
|
|
|
|
qint64 time;
|
|
|
|
|
int messageType;
|
2014-09-10 13:51:36 +02:00
|
|
|
int subtype;
|
2011-06-28 15:51:20 +02:00
|
|
|
|
|
|
|
|
stream >> time >> messageType;
|
2014-09-10 13:51:36 +02:00
|
|
|
if (!stream.atEnd())
|
|
|
|
|
stream >> subtype;
|
|
|
|
|
else
|
|
|
|
|
subtype = -1;
|
2011-06-28 15:51:20 +02:00
|
|
|
|
2011-08-05 12:58:43 +02:00
|
|
|
if (time > (d->maximumTime + GAP_TIME) && 0 == d->inProgressRanges)
|
2011-06-28 15:51:20 +02:00
|
|
|
emit gap(time);
|
|
|
|
|
|
2014-09-10 13:51:36 +02:00
|
|
|
switch (messageType) {
|
|
|
|
|
case Event: {
|
|
|
|
|
switch (subtype) {
|
|
|
|
|
case StartTrace: {
|
|
|
|
|
if (!d->recording)
|
|
|
|
|
setRecordingFromServer(true);
|
|
|
|
|
QList<int> engineIds;
|
|
|
|
|
while (!stream.atEnd()) {
|
|
|
|
|
int id;
|
|
|
|
|
stream >> id;
|
|
|
|
|
engineIds << id;
|
|
|
|
|
}
|
|
|
|
|
emit this->traceStarted(time, engineIds);
|
|
|
|
|
d->maximumTime = time;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case EndTrace: {
|
2014-03-12 17:20:52 +01:00
|
|
|
QList<int> engineIds;
|
|
|
|
|
while (!stream.atEnd()) {
|
|
|
|
|
int id;
|
|
|
|
|
stream >> id;
|
|
|
|
|
engineIds << id;
|
|
|
|
|
}
|
|
|
|
|
emit this->traceFinished(time, engineIds);
|
2011-09-22 16:58:59 +02:00
|
|
|
d->maximumTime = time;
|
2011-12-14 16:44:33 +01:00
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case AnimationFrame: {
|
|
|
|
|
if (!(d->features & (1 << ProfileAnimations)))
|
|
|
|
|
break;
|
2011-12-14 16:44:33 +01:00
|
|
|
int frameRate, animationCount;
|
2014-03-07 17:35:56 +01:00
|
|
|
int threadId;
|
2011-12-14 16:44:33 +01:00
|
|
|
stream >> frameRate >> animationCount;
|
2014-03-07 17:35:56 +01:00
|
|
|
if (!stream.atEnd())
|
|
|
|
|
stream >> threadId;
|
|
|
|
|
else
|
|
|
|
|
threadId = 0;
|
2014-09-10 13:51:36 +02:00
|
|
|
|
2014-06-13 16:33:30 +02:00
|
|
|
emit rangedEvent(Event, MaximumRangeType, AnimationFrame, time, 0, QString(),
|
2015-02-03 23:48:57 +02:00
|
|
|
QmlEventLocation(), frameRate, animationCount, threadId,
|
2014-09-10 13:51:36 +02:00
|
|
|
0, 0);
|
2011-12-14 16:44:33 +01:00
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case Key:
|
|
|
|
|
case Mouse:
|
|
|
|
|
if (!(d->features & (1 << ProfileInputEvents)))
|
|
|
|
|
break;
|
|
|
|
|
|
2014-10-10 18:08:50 +02:00
|
|
|
emit this->rangedEvent(Event, MaximumRangeType, subtype, time, 0, QString(),
|
2015-02-03 23:48:57 +02:00
|
|
|
QmlEventLocation(), 0, 0, 0, 0, 0);
|
2011-08-05 12:58:43 +02:00
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
2014-09-10 13:51:36 +02:00
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case Complete:
|
2014-04-03 12:33:14 +02:00
|
|
|
emit complete(d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
case SceneGraphFrame: {
|
|
|
|
|
if (!(d->features & (1 << ProfileSceneGraph)))
|
|
|
|
|
break;
|
|
|
|
|
|
2013-08-08 13:28:08 +02:00
|
|
|
int count = 0;
|
|
|
|
|
qint64 params[5];
|
|
|
|
|
|
|
|
|
|
while (!stream.atEnd()) {
|
|
|
|
|
stream >> params[count++];
|
|
|
|
|
}
|
|
|
|
|
while (count<5)
|
|
|
|
|
params[count++] = 0;
|
2015-02-03 23:48:57 +02:00
|
|
|
emit rangedEvent(SceneGraphFrame, MaximumRangeType, subtype,time, 0,
|
|
|
|
|
QString(), QmlEventLocation(), params[0], params[1],
|
2014-06-03 16:57:32 +02:00
|
|
|
params[2], params[3], params[4]);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case PixmapCacheEvent: {
|
|
|
|
|
if (!(d->features & (1 << ProfilePixmapCache)))
|
|
|
|
|
break;
|
|
|
|
|
int width = 0, height = 0, refcount = 0;
|
2013-08-08 13:28:08 +02:00
|
|
|
QString pixUrl;
|
2014-09-10 13:51:36 +02:00
|
|
|
stream >> pixUrl;
|
|
|
|
|
if (subtype == (int)PixmapReferenceCountChanged || subtype == (int)PixmapCacheCountChanged) {
|
2013-08-08 13:28:08 +02:00
|
|
|
stream >> refcount;
|
2014-09-10 13:51:36 +02:00
|
|
|
} else if (subtype == (int)PixmapSizeKnown) {
|
2013-08-08 13:28:08 +02:00
|
|
|
stream >> width >> height;
|
|
|
|
|
refcount = 1;
|
|
|
|
|
}
|
2015-02-03 23:48:57 +02:00
|
|
|
emit rangedEvent(PixmapCacheEvent, MaximumRangeType, subtype, time, 0,
|
|
|
|
|
QString(), QmlEventLocation(pixUrl,0,0), width, height,
|
2014-06-03 16:57:32 +02:00
|
|
|
refcount, 0, 0);
|
2013-08-08 13:28:08 +02:00
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case MemoryAllocation: {
|
|
|
|
|
if (!(d->features & (1 << ProfileMemory)))
|
|
|
|
|
break;
|
|
|
|
|
|
2014-05-27 19:19:03 +02:00
|
|
|
qint64 delta;
|
2014-09-10 13:51:36 +02:00
|
|
|
stream >> delta;
|
2015-02-03 23:48:57 +02:00
|
|
|
emit rangedEvent(MemoryAllocation, MaximumRangeType, subtype, time, 0,
|
|
|
|
|
QString(), QmlEventLocation(), delta, 0, 0, 0, 0);
|
2014-05-27 19:19:03 +02:00
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case RangeStart: {
|
2014-09-24 07:59:13 +03:00
|
|
|
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
d->rangeStartTimes[subtype].push(time);
|
|
|
|
|
d->inProgressRanges |= (static_cast<qint64>(1) << subtype);
|
|
|
|
|
++d->rangeCount[subtype];
|
|
|
|
|
|
|
|
|
|
// read binding type
|
|
|
|
|
if ((RangeType)subtype == Binding) {
|
|
|
|
|
int bindingType = (int)QmlBinding;
|
2012-01-12 16:36:40 +01:00
|
|
|
if (!stream.atEnd())
|
2014-09-10 13:51:36 +02:00
|
|
|
stream >> bindingType;
|
|
|
|
|
d->bindingTypes.push((BindingType)bindingType);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case RangeData: {
|
2014-09-24 07:59:13 +03:00
|
|
|
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
QString data;
|
|
|
|
|
stream >> data;
|
|
|
|
|
|
|
|
|
|
int count = d->rangeCount[subtype];
|
|
|
|
|
if (count > 0) {
|
|
|
|
|
while (d->rangeDatas[subtype].count() < count)
|
|
|
|
|
d->rangeDatas[subtype].push(QString());
|
|
|
|
|
d->rangeDatas[subtype][count-1] = data;
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case RangeLocation: {
|
2014-09-24 07:59:13 +03:00
|
|
|
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
QString fileName;
|
|
|
|
|
int line;
|
|
|
|
|
int column = -1;
|
|
|
|
|
stream >> fileName >> line;
|
|
|
|
|
|
|
|
|
|
if (!stream.atEnd())
|
|
|
|
|
stream >> column;
|
|
|
|
|
|
|
|
|
|
if (d->rangeCount[subtype] > 0)
|
|
|
|
|
d->rangeLocations[subtype].push(QmlEventLocation(fileName, line, column));
|
|
|
|
|
break;
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|
2014-09-10 13:51:36 +02:00
|
|
|
case RangeEnd: {
|
2014-09-24 07:59:13 +03:00
|
|
|
if (!(d->features & (1ULL << featureFromRangeType(static_cast<RangeType>(subtype)))))
|
2014-09-10 13:51:36 +02:00
|
|
|
break;
|
|
|
|
|
if (d->rangeCount[subtype] == 0)
|
|
|
|
|
break;
|
|
|
|
|
--d->rangeCount[subtype];
|
|
|
|
|
if (d->inProgressRanges & (static_cast<qint64>(1) << subtype))
|
|
|
|
|
d->inProgressRanges &= ~(static_cast<qint64>(1) << subtype);
|
|
|
|
|
|
|
|
|
|
d->maximumTime = qMax(time, d->maximumTime);
|
|
|
|
|
QString data = d->rangeDatas[subtype].count() ? d->rangeDatas[subtype].pop() : QString();
|
|
|
|
|
QmlEventLocation location = d->rangeLocations[subtype].count() ? d->rangeLocations[subtype].pop() : QmlEventLocation();
|
|
|
|
|
|
|
|
|
|
qint64 startTime = d->rangeStartTimes[subtype].pop();
|
|
|
|
|
BindingType bindingType = QmlBinding;
|
|
|
|
|
if ((RangeType)subtype == Binding)
|
|
|
|
|
bindingType = d->bindingTypes.pop();
|
|
|
|
|
if ((RangeType)subtype == Painting)
|
|
|
|
|
bindingType = QPainterEvent;
|
|
|
|
|
emit rangedEvent(MaximumMessage, (RangeType)subtype, bindingType, startTime,
|
|
|
|
|
time - startTime, data, location, 0, 0, 0, 0, 0);
|
|
|
|
|
if (d->rangeCount[subtype] == 0) {
|
|
|
|
|
int count = d->rangeDatas[subtype].count() +
|
|
|
|
|
d->rangeStartTimes[subtype].count() +
|
|
|
|
|
d->rangeLocations[subtype].count();
|
|
|
|
|
if (count != 0)
|
|
|
|
|
qWarning() << "incorrectly nested data";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// stop with the first data
|
|
|
|
|
if (messageType != Event || subtype != StartTrace)
|
|
|
|
|
setRecordingFromServer(false);
|
2011-06-28 15:51:20 +02:00
|
|
|
}
|