diff options
| author | jasplin <qt-info@nokia.com> | 2010-04-12 15:29:22 +0200 |
|---|---|---|
| committer | jasplin <qt-info@nokia.com> | 2010-04-12 15:29:22 +0200 |
| commit | 842a970eb3b085b83df134166606fe04b37032d2 (patch) | |
| tree | 6e0818a7a196c464c774c6b11dabbf00bdca43cb /src/bm/bmmisc.cpp | |
| parent | a62277ff1c05b222a42d0dd670443f92640df655 (diff) | |
Added cross-context comparison of a given benchmark.
This feature allows the user to select a benchmark
(i.e. a test case / test function / data tag combination)
and generate a plot of all the result histories generated
by this benchmark in different contexts.
This is is useful for manual correlation analysis (e.g.
a certain change in one context might also occur in
other contexts).
Diffstat (limited to 'src/bm/bmmisc.cpp')
| -rw-r--r-- | src/bm/bmmisc.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bm/bmmisc.cpp b/src/bm/bmmisc.cpp index 4fda06b..5ab7404 100644 --- a/src/bm/bmmisc.cpp +++ b/src/bm/bmmisc.cpp @@ -279,7 +279,7 @@ QString BMMisc::diffColor(qreal diff, bool higherIsBetter) bool BMMisc::lowerIsBetter(const QString &metric) { - if (metric == "FramesPerSeconds") // ### More to be added ... + if (metric == "FramesPerSecond") // ### More to be added ... return false; return true; } @@ -311,3 +311,10 @@ bool BMMisc::normalize(QList<qreal> &v) } return true; } + +QString BMMisc::compactDateString(int timestamp) +{ + QDateTime dateTime; + dateTime.setTime_t(timestamp); + return dateTime.toString("dd MMM yyyy"); +} |
