X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fretracer.h;h=af1a3d9f7b727b70f1173dcc058980bba590f6a6;hb=ebe01ce9942e570f23b40793e97cf02b6f3616ee;hp=8a42be15ce0b108fde18c98b9e2a1b08a43e611f;hpb=6ea8dee938bdb475811657e123af4cc2f1abe991;p=apitrace diff --git a/gui/retracer.h b/gui/retracer.h index 8a42be1..af1a3d9 100644 --- a/gui/retracer.h +++ b/gui/retracer.h @@ -5,9 +5,12 @@ #include "apitracecall.h" #include +#include 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 &thumbnails); void error(const QString &msg); void retraceErrors(const QList &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