aboutsummaryrefslogtreecommitdiff
path: root/lnt/server
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-10-01 12:23:02 +0000
committerMartin Liska <mliska@suse.cz>2018-10-01 12:23:02 +0000
commita4fd5050a3ff9270192f153f44f611ca87a3bc09 (patch)
tree826229c0ad854bd9b21cfe74a179812e000e40fc /lnt/server
parent8611887f5b5bd8819b6e6c71ebf2a35dc831ee3b (diff)
Print machine name in LNT graph tooltip.
Differential Revision: https://reviews.llvm.org/D52346 git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@343463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lnt/server')
-rw-r--r--lnt/server/ui/static/lnt_graph.js4
-rw-r--r--lnt/server/ui/views.py7
2 files changed, 8 insertions, 3 deletions
diff --git a/lnt/server/ui/static/lnt_graph.js b/lnt/server/ui/static/lnt_graph.js
index 7dd1924..dbb5f8d 100644
--- a/lnt/server/ui/static/lnt_graph.js
+++ b/lnt/server/ui/static/lnt_graph.js
@@ -99,6 +99,10 @@ function show_tooltip(x, y, item, pos, graph_data) {
tip_body += "<b><a href=\"" + meta_data.link + "\">" + meta_data.title + "</a></b></br>";
}
+ if (meta_data.machine) {
+ tip_body += "<b>Machine:</b> " + meta_data.machine + "<br>";
+ }
+
if (meta_data.test_name) {
tip_body += "<b>Test:</b> " + meta_data.test_name + "<br>";
}
diff --git a/lnt/server/ui/views.py b/lnt/server/ui/views.py
index cbc5c3f..50df93b 100644
--- a/lnt/server/ui/views.py
+++ b/lnt/server/ui/views.py
@@ -955,7 +955,7 @@ def v4_graph():
data.sort(key=lambda sample: convert_revision(sample[0], cache=revision_cache))
- graph_datum.append((test.name, data, col, field, url))
+ graph_datum.append((test.name, data, col, field, url, machine))
# Get baselines for this line
num_baselines = len(baseline_parameters)
@@ -1021,9 +1021,9 @@ def v4_graph():
# Sort data points according to revision number.
data.sort(key=lambda sample: convert_revision(sample[0]))
- graph_datum.append((test_name, data, col, field, None))
+ graph_datum.append((test_name, data, col, field, None, machine))
- for name, data, col, field, url in graph_datum:
+ for name, data, col, field, url, machine in graph_datum:
# Compute the graph points.
errorbar_data = []
points_data = []
@@ -1062,6 +1062,7 @@ def v4_graph():
# Generate metadata.
metadata = {"label": point_label}
+ metadata["machine"] = machine.name
metadata["date"] = str(dates[agg_index])
if runs:
metadata["runID"] = str(runs[agg_index])