4 #include "trace_api.hpp"
5 #include "apitracecall.h"
12 namespace trace { struct Profile; }
14 class Retracer : public QThread
18 Retracer(QObject *parent=0);
20 QString fileName() const;
21 void setFileName(const QString &name);
23 void setAPI(trace::API api);
25 bool isBenchmarking() const;
26 void setBenchmarking(bool bench);
28 bool isDoubleBuffered() const;
29 void setDoubleBuffered(bool db);
31 bool isProfilingGpu() const;
32 bool isProfilingCpu() const;
33 bool isProfilingPixels() const;
34 bool isProfiling() const;
35 void setProfiling(bool gpu, bool cpu, bool pixels);
37 void setCaptureAtCallNumber(qlonglong num);
38 qlonglong captureAtCallNumber() const;
40 bool captureState() const;
41 void setCaptureState(bool enable);
43 bool captureThumbnails() const;
44 void setCaptureThumbnails(bool enable);
47 void finished(const QString &output);
48 void foundState(ApiTraceState *state);
49 void foundProfile(trace::Profile *profile);
50 void foundThumbnails(const QList<QImage> &thumbnails);
51 void error(const QString &msg);
52 void retraceErrors(const QList<ApiTraceError> &errors);
61 bool m_doubleBuffered;
63 bool m_captureThumbnails;
64 qlonglong m_captureCall;