struct ProfileTableRow
{
- ProfileTableRow()
- : program(0),
+ ProfileTableRow(unsigned no)
+ : program(no),
uses(0),
gpuTime(0),
cpuTime(0),
ProfileTableModel(QObject *parent = NULL);
void setProfile(trace::Profile* profile);
- void setTimeSelection(int64_t start, int64_t end);
+ 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;