summaryrefslogtreecommitdiffstats
path: root/src/bm
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2010-03-26 15:17:40 +0100
committerjasplin <qt-info@nokia.com>2010-03-26 15:17:40 +0100
commit6e86b34f9446fd7c794e65a87b37e7d5538cd1de (patch)
tree46c31cd58b10af6ba48bb4b75690605a3f3430e7 /src/bm
parent77a578d73c0a2e770f5baff2042b9b6de79a6fcb (diff)
Added a 'settings' sub-section to the index section.
This patch allows for controlling more of the options to the 'index get detailspage' bmclient command from the web app.
Diffstat (limited to 'src/bm')
-rw-r--r--src/bm/bmrequest.cpp13
-rw-r--r--src/bm/plotter.cpp4
2 files changed, 15 insertions, 2 deletions
diff --git a/src/bm/bmrequest.cpp b/src/bm/bmrequest.cpp
index e2802b6..5ac5fcd 100644
--- a/src/bm/bmrequest.cpp
+++ b/src/bm/bmrequest.cpp
@@ -5374,6 +5374,19 @@ void BMRequest_IndexGetValues::handleReply_HTML(const QStringList &args) const
reply += QString("<link rel=\"stylesheet\" type=\"text/css\" href=\"%1\" />\n").arg(styleSheet);
reply += QString("</head>\n<body>\n");
+ reply += "<span style=\"font-size:18\">Qt Performance Index</span>";
+
+ reply += "<br /><br /><table><tr><td style=\"background-color:#eeeeee\">";
+ reply += "This page shows the performance index evaluated at certain timestamps ";
+ reply += "and for certain result histories (i.e. for certain benchmarks in certain contexts, ";
+ reply += "where the context represent platform etc.).";
+ reply += "<br /><br />";
+ reply += "The index value at a given time shows the aggregated performance at that time ";
+ reply += "relative to the aggregated performance at a given base time in terms of percentage ";
+ reply += "of the latter. A value of 200 thus indicates a doubled performance (i.e. twice ";
+ reply += "the FPS or half the walltime), while 50 indicates a halved performance.";
+ reply += "</td></tr></table>";
+
QDomElement argsElem = doc.elementsByTagName("args").at(0).toElement();
diff --git a/src/bm/plotter.cpp b/src/bm/plotter.cpp
index 88f40bd..e709fb5 100644
--- a/src/bm/plotter.cpp
+++ b/src/bm/plotter.cpp
@@ -482,7 +482,7 @@ bool IndexPlotter::drawScenes(
scene_far->addLine(btx, ymin, btx, ymax, QPen(color, 1));
}
- const qreal dpSize = 4;
+ const qreal dpSize = 3;
// Draw history curve between data points that are not missing ...
if (missing.count(false) > 1)
@@ -571,7 +571,7 @@ bool IndexPlotter::drawScenes(
{
QFont font;
font.setPointSize(16);
- const QString title = QString("Qt performance index (<description>)");
+ const QString title = QString("Qt Performance Index (<description>)");
QGraphicsSimpleTextItem *text = scene_near->addSimpleText(title, font);
const qreal x_ = (xmin + xmax) / 2 - text->boundingRect().width() / 2;
const qreal y_ = ymin - labelPad - text->boundingRect().height();