/****************************************************************************
**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
**
**
**
+**
** $QT_END_LICENSE$
**
****************************************************************************/
QT_BEGIN_NAMESPACE
-QT_MODULE(Declarative)
-struct QV8ProfilerData
+struct Q_AUTOTEST_EXPORT QV8ProfilerData
{
int messageType;
QString filename;
class QDeclarativeEngine;
class QV8ProfilerServicePrivate;
-class QV8ProfilerService : public QDeclarativeDebugService
+class Q_AUTOTEST_EXPORT QV8ProfilerService : public QDeclarativeDebugService
{
Q_OBJECT
public:
enum MessageType {
V8Entry,
V8Complete,
- V8Snapshot,
+ V8SnapshotChunk,
+ V8SnapshotComplete,
V8MaximumMessage
};
~QV8ProfilerService();
static QV8ProfilerService *instance();
+ static void initialize();
- void addEngine(QDeclarativeEngine *);
- void removeEngine(QDeclarativeEngine *);
-
+public slots:
void startProfiling(const QString &title);
void stopProfiling(const QString &title);
+ void takeSnapshot();
+ void deleteSnapshots();
void sendProfilingData();