X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fprofiletablemodel.h;h=da17550393ba83395b7a68539e25e1460b1c2c97;hb=6bb028d7223347f167c2a4e16f8bb0028c95ffe9;hp=6cca74d9324958fd8c3a5f336c4b1fa4d1b94e3b;hpb=56ad11c7849c7e6ca0ad66558cb1a99c58d4cd3d;p=apitrace diff --git a/gui/profiletablemodel.h b/gui/profiletablemodel.h index 6cca74d..da17550 100644 --- a/gui/profiletablemodel.h +++ b/gui/profiletablemodel.h @@ -24,9 +24,9 @@ struct ProfileTableRow qulonglong cpuTime; qulonglong pixels; - const trace::Profile::DrawCall* longestGpu; - const trace::Profile::DrawCall* longestCpu; - const trace::Profile::DrawCall* longestPixel; + const trace::Profile::Call* longestGpu; + const trace::Profile::Call* longestCpu; + const trace::Profile::Call* longestPixel; }; class ProfileTableModel : public QAbstractTableModel @@ -37,9 +37,14 @@ public: ProfileTableModel(QObject *parent = NULL); void setProfile(trace::Profile* profile); - void setTimeSelection(int64_t start, int64_t end); - const trace::Profile::DrawCall* getJumpCall(const QModelIndex & index) const; + void selectNone(); + void selectProgram(unsigned program); + void selectTime(int64_t start, int64_t end); + + int getRowIndex(unsigned program) const; + unsigned getProgram(const QModelIndex & index) const; + const trace::Profile::Call* getJumpCall(const QModelIndex & index) const; virtual int rowCount(const QModelIndex & parent) const; virtual int columnCount(const QModelIndex & parent) const;