[llvm-commits] [LNT] r161213 - /lnt/trunk/lnt/server/ui/views.py
Michael Gottesman
mgottesman at apple.com
Thu Aug 2 14:31:33 PDT 2012
Author: mgottesman
Date: Thu Aug 2 16:31:33 2012
New Revision: 161213
URL: http://llvm.org/viewvc/llvm-project?rev=161213&view=rev
Log:
[LNT] Added code to views.py so that revision highlighting is performed when one views a specific test/run/revision graph.
Modified:
lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=161213&r1=161212&r2=161213&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Thu Aug 2 16:31:33 2012
@@ -982,9 +982,21 @@
data = map(convert, data)
# Compute the graph points.
+ revision_range_region = []
errorbar_data = []
points_data = []
pts = []
+
+ # Create region of interest for run data region if
+ # we are performing a comparison.
+ if compare_to:
+ start_rev = compare_to.order.llvm_project_revision
+ end_rev = run.order.llvm_project_revision
+ revision_range_region = (
+ convert_revision(start_rev),
+ convert_revision(end_rev)
+ )
+
if normalize_by_median:
normalize_by = 1.0/stats.median([min(values)
for _,values in data])
@@ -1054,7 +1066,14 @@
style = "new Graph2D_LinePlotStyle(2, %r)" % (reglin_col,)
graph_plots.append("graph.addPlot([%s], %s);" % (
pts,style))
-
+
+ # If we are comparing two revisions,
+ if compare_to:
+ reg_col = [0.0, 0.0, 1.0]
+ graph_plots.append("graph.addPlot([%i, %i],%s);" % (
+ revision_range_region[0], revision_range_region[1],
+ "new Graph2D_RangePlotStyle(%r)" % reg_col))
+
# Add the points plot, if used.
if points_data:
pts_col = (0,0,0)
More information about the llvm-commits
mailing list