[llvm-commits] [zorg] r151320 - in /zorg/trunk/lnt/lnt/server: reporting/runs.py ui/views.py

Daniel Dunbar daniel at zuster.org
Thu Feb 23 16:57:52 PST 2012


Author: ddunbar
Date: Thu Feb 23 18:57:52 2012
New Revision: 151320

URL: http://llvm.org/viewvc/llvm-project?rev=151320&view=rev
Log:
[lnt] lnt.server.ui: We need to use the compare_to run as the basis for deriving the window of runs we use for estimating the std.dev. from historical data (because we use that window to derive the mean we are comparing against).

Modified:
    zorg/trunk/lnt/lnt/server/reporting/runs.py
    zorg/trunk/lnt/lnt/server/ui/views.py

Modified: zorg/trunk/lnt/lnt/server/reporting/runs.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/reporting/runs.py?rev=151320&r1=151319&r2=151320&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/reporting/runs.py (original)
+++ zorg/trunk/lnt/lnt/server/reporting/runs.py Thu Feb 23 18:57:52 2012
@@ -32,8 +32,9 @@
 
     # Gather the runs to use for statistical data.
     if comparison_window is None:
+        comparison_start_run = compare_to or run
         comparison_window = list(ts.get_previous_runs_on_machine(
-                run, num_comparison_runs))
+                comparison_start_run, num_comparison_runs))
 
     # Get the specific run to compare to.
     if compare_to is None and comparison_window:

Modified: zorg/trunk/lnt/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/views.py?rev=151320&r1=151319&r2=151320&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/views.py (original)
+++ zorg/trunk/lnt/lnt/server/ui/views.py Thu Feb 23 18:57:52 2012
@@ -789,8 +789,9 @@
             self.num_comparison_runs = 10
 
         # Gather the runs to use for statistical data.
+        comparison_start_run = self.compare_to or self.run
         self.comparison_window = list(ts.get_previous_runs_on_machine(
-                    self.run, self.num_comparison_runs))
+                    comparison_start_run, self.num_comparison_runs))
 
         reports = lnt.server.reporting.runs.generate_run_report(
             self.run, baseurl=db_url_for('index', _external=True),





More information about the llvm-commits mailing list