38 return periodicTaskList.size();
50 const unsigned int& row =
index.row();
51 const unsigned int& column =
index.column();
52 std::unique_lock lock(taskListsMutex);
54 if (row >= periodicTaskList.size())
59 const PeriodicTaskIceBase& entry = periodicTaskList.at(row);
68 return QString::fromStdString(entry.name);
84 return entry.intervalMs;
88 return *entry.workloadList.rbegin() * 100.0f;
92 return QString::number(0.001 * entry.lastCycleDuration,
'f', 1);
97 QString date = QString::fromStdString(
98 IceUtil::Time::microSeconds(entry.startTime).toDateTime());
99 return date.remove(0, date.indexOf(
' ') + 1);
105 QString date = QString::fromStdString(
106 IceUtil::Time::microSeconds(entry.lastCycleStartTime).toDateTime());
107 return date.remove(0, date.indexOf(
' ') + 1);
113 return QString::number(entry.threadId);
136 case Qt::DisplayRole:
137 case Qt::ToolTipRole:
138 if (orientation == Qt::Horizontal)
149 return "Interval (ms)";
155 return "Last cycle duration (ms)";
161 return "Last cycle start";
171 return QAbstractTableModel::headerData(section, orientation, role);
179 std::unique_lock lock(taskListsMutex);
180 this->periodicTaskList = periodicTaskList;