]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.h
qapitrace: Adjust PATH only once and for all.
[apitrace] / gui / retracer.h
index 8a42be15ce0b108fde18c98b9e2a1b08a43e611f..af1a3d9f7b727b70f1173dcc058980bba590f6a6 100644 (file)
@@ -5,9 +5,12 @@
 #include "apitracecall.h"
 
 #include <QThread>
+#include <QProcess>
 
 class ApiTraceState;
 
+namespace trace { struct Profile; }
+
 class Retracer : public QThread
 {
     Q_OBJECT
@@ -25,6 +28,12 @@ public:
     bool isDoubleBuffered() const;
     void setDoubleBuffered(bool db);
 
+    bool isProfilingGpu() const;
+    bool isProfilingCpu() const;
+    bool isProfilingPixels() const;
+    bool isProfiling() const;
+    void setProfiling(bool gpu, bool cpu, bool pixels);
+
     void setCaptureAtCallNumber(qlonglong num);
     qlonglong captureAtCallNumber() const;
 
@@ -37,6 +46,7 @@ public:
 signals:
     void finished(const QString &output);
     void foundState(ApiTraceState *state);
+    void foundProfile(trace::Profile *profile);
     void foundThumbnails(const QList<QImage> &thumbnails);
     void error(const QString &msg);
     void retraceErrors(const QList<ApiTraceError> &errors);
@@ -52,8 +62,9 @@ private:
     bool m_captureState;
     bool m_captureThumbnails;
     qlonglong m_captureCall;
-
-    QProcessEnvironment m_processEnvironment;
+    bool m_profileGpu;
+    bool m_profileCpu;
+    bool m_profilePixels;
 };
 
 #endif