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 QString remoteTarget() const;
24 void setRemoteTarget(const QString &host);
26 void setAPI(trace::API api);
28 bool isBenchmarking() const;
29 void setBenchmarking(bool bench);
31 bool isDoubleBuffered() const;
32 void setDoubleBuffered(bool db);
34 bool isProfilingGpu() const;
35 bool isProfilingCpu() const;
36 bool isProfilingPixels() const;
37 bool isProfiling() const;
38 void setProfiling(bool gpu, bool cpu, bool pixels);
40 void setCaptureAtCallNumber(qlonglong num);
41 qlonglong captureAtCallNumber() const;
43 bool captureState() const;
44 void setCaptureState(bool enable);
46 bool captureThumbnails() const;
47 void setCaptureThumbnails(bool enable);
50 void finished(const QString &output);
51 void foundState(ApiTraceState *state);
52 void foundProfile(trace::Profile *profile);
53 void foundThumbnails(const QList<QImage> &thumbnails);
54 void error(const QString &msg);
55 void retraceErrors(const QList<ApiTraceError> &errors);
62 QString m_remoteTarget;
65 bool m_doubleBuffered;
67 bool m_captureThumbnails;
68 qlonglong m_captureCall;