diff options
Diffstat (limited to 'src/bm/resulthistoryinfo.h')
-rw-r--r-- | src/bm/resulthistoryinfo.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/bm/resulthistoryinfo.h b/src/bm/resulthistoryinfo.h index e91ecb1..a3af335 100644 --- a/src/bm/resulthistoryinfo.h +++ b/src/bm/resulthistoryinfo.h @@ -32,10 +32,13 @@ public: ResultHistoryInfo( const int bmcontextId, const QList<int> ×tamps_, const QList<qreal> &values, const QString &metric, const QString &platform = QString(), const QString &host = QString(), - const QString &gitRepo = QString(), const QString &gitBranch = QString()) + const QString &gitRepo = QString(), const QString &gitBranch = QString(), + const QString &testCase = QString(), const QString &testFunction = QString(), + const QString &dataTag = QString()) : bmcontextId_(bmcontextId), timestamps_(timestamps_), values(values) , metric_(metric), platform_(platform), host_(host), gitRepo_(gitRepo) - , gitBranch_(gitBranch), cachedTimestamp(-1) + , gitBranch_(gitBranch), testCase_(testCase), testFunction_(testFunction) + , dataTag_(dataTag), cachedTimestamp(-1), cachedSmoothPos(-1) { Q_ASSERT(!timestamps_.isEmpty()); Q_ASSERT(timestamps_.size() == values.size()); @@ -44,8 +47,8 @@ public: } } - bool getSmoothValue( - int timestamp, int medianWinSize, qreal *smoothValue, bool cache = false, + bool getSmoothPos( + int timestamp, int medianWinSize, int *smoothPos, bool cache = false, qreal *distSum = 0) const; bool getSmoothValues(int medianWinSize, QList<qreal> *smoothValues) const; @@ -60,10 +63,11 @@ public: QString host() const { return host_; } QString gitRepo() const { return gitRepo_; } QString gitBranch() const { return gitBranch_; } + QString testCase() const { return testCase_; } + QString testFunction() const { return testFunction_; } + QString dataTag() const { return dataTag_; } - static bool findTargetPos( - const QList<int> ×tamps, int timestamp, int medianWinSize, int *pos = 0, - qreal *distSum = 0); + bool findTargetPos(int timestamp, int medianWinSize, int *pos = 0, qreal *distSum = 0) const; private: int bmcontextId_; @@ -74,8 +78,11 @@ private: QString host_; QString gitRepo_; QString gitBranch_; + QString testCase_; + QString testFunction_; + QString dataTag_; mutable bool cachedTimestamp; - mutable qreal cachedSmoothValue; + mutable qreal cachedSmoothPos; }; #endif // RESULTHISTORYINFO_H |