Perf-o-matic should show min/max/stdev on graphs
[WebKit-https.git] / Websites / webkit-perf.appspot.com / runs_handler.py
index c73ec42b35e6a4fa1ff556129c996128d71a65df..ca31093918d71f18081339f086b5831a920e21ed 100644 (file)
@@ -85,9 +85,14 @@ class RunsHandler(webapp2.RequestHandler):
             for result in results:
                 builderId = build.builder.key().id()
                 posixTimestamp = mktime(build.timestamp.timetuple())
+                statistics = None
+                if result.valueStdev != None and result.valueMin != None and result.valueMax != None:
+                    statistics = {'stdev': result.valueStdev, 'min': result.valueMin, 'max': result.valueMax}
                 test_runs.append([result.key().id(),
                     [build.key().id(), build.buildNumber, build.revision],
-                    posixTimestamp, result.value, 0, [], builderId])
+                    posixTimestamp, result.value, 0,  # runNumber
+                    [],  # annotations
+                    builderId, statistics])
                 # FIXME: Calculate the average; in practice, we wouldn't have more than one value for a given revision
                 averages[build.revision] = result.value
                 values.append(result.value)