summaryrefslogtreecommitdiffstats
path: root/src/bm/bmrequest.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2010-04-26 07:43:38 +0200
committerjasplin <qt-info@nokia.com>2010-04-26 07:43:38 +0200
commit5526b7e6d476962fe7a14dd6af774a93d2c50be9 (patch)
tree6974a4e463da4b4a4f96bf27014d9a83c2253c1a /src/bm/bmrequest.h
parent5a1e7fa55051285110a8a106c90483e110f415ee (diff)
Upgraded the index feature.
1: The index itself is computed so that the _change_ in index value between any two points in time indicates the average performance increase during this time period in terms of a log2-based difference. An index value _change_ of 1, 0, and -1 thus indicates a doubled, unchanged, and halved performance respectively. (The corresponding linear factors would be 2, 1, and 0.5.). Note: Individual index values bear no useful meaning when regarded in isolation. The graph is however shifted vertically so that each individual index value indicates the change from the index value at the given base time (the index value of the latter is then 0 and 1 in the log2 and linear domain respectively). 2: Clicking on a particular data point in the index graph now opens a page that shows the top-10 results histories that contributed most significantly to this particular change in the index value. Each contributor graph indicates the data points that were used for computing the contribution for this index value.
Diffstat (limited to 'src/bm/bmrequest.h')
-rw-r--r--src/bm/bmrequest.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bm/bmrequest.h b/src/bm/bmrequest.h
index a769e0f..0732778 100644
--- a/src/bm/bmrequest.h
+++ b/src/bm/bmrequest.h
@@ -25,6 +25,7 @@
#define BMREQUEST_H
#include "bmmisc.h"
+#include "index.h"
#include <QtXml>
#include <QImage>
#include <QColor>
@@ -693,6 +694,7 @@ private:
};
// ### 2 B DOCUMENTED (in bmclient.html and bmproto.html)
+// ### NOTE: This request should be renamed to GetTCHistories ... 2 B DONE!
class BMRequest_GetHistories : public BMRequest
{
public:
@@ -730,4 +732,27 @@ private:
void handleReply_JSON(const QStringList &args) const;
};
+// ### 2 B DOCUMENTED (in bmclient.html and bmproto.html)
+class BMRequest_GetIXHistories : public BMRequest
+{
+public:
+ BMRequest_GetIXHistories(
+ const int evalTimestamp, const QList<Index::RankedInfo> &rankedInfos,
+ const QString &cacheKey)
+ : evalTimestamp(evalTimestamp), rankedInfos(rankedInfos), cacheKey(cacheKey) {}
+ BMRequest_GetIXHistories(const QDomDocument &doc) : BMRequest(doc) {}
+private:
+ mutable int evalTimestamp;
+ QList<Index::RankedInfo> rankedInfos;
+ QString cacheKey;
+
+ QString name() const { return "GetIXHistories"; }
+ QByteArray toRequestBuffer(QString *error);
+ QByteArray toReplyBuffer();
+ void handleReply_Raw(const QStringList &args) const { Q_UNUSED(args); /* 2 B DONE! */ };
+ void handleReply_JSON(const QStringList &args) const { Q_UNUSED(args); /* 2 B DONE! */ }
+ void handleReply_HTML(const QStringList &args) const;
+ void handleReply_Image(const QStringList &args) const;
+};
+
#endif // BMREQUEST_H