X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fretracer.h;h=af1a3d9f7b727b70f1173dcc058980bba590f6a6;hb=ebe01ce9942e570f23b40793e97cf02b6f3616ee;hp=d6da7ac5fd5e385cfca96bcab85553122a958b86;hpb=dc9e9c6addb436b7b2d87984d4bd9b0a18d5c5e2;p=apitrace diff --git a/gui/retracer.h b/gui/retracer.h index d6da7ac..af1a3d9 100644 --- a/gui/retracer.h +++ b/gui/retracer.h @@ -9,6 +9,8 @@ class ApiTraceState; +namespace trace { struct Profile; } + class Retracer : public QThread { Q_OBJECT @@ -26,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; @@ -38,6 +46,7 @@ public: signals: void finished(const QString &output); void foundState(ApiTraceState *state); + void foundProfile(trace::Profile *profile); void foundThumbnails(const QList &thumbnails); void error(const QString &msg); void retraceErrors(const QList &errors); @@ -53,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