[llvm-commits] [zorg] r110921 - /zorg/trunk/lnt/lnt/db/perfdbsummary.py

Daniel Dunbar daniel at zuster.org
Thu Aug 12 09:03:41 PDT 2010


Author: ddunbar
Date: Thu Aug 12 11:03:40 2010
New Revision: 110921

URL: http://llvm.org/viewvc/llvm-project?rev=110921&view=rev
Log:
LNT: Order by submission time among runs for the same revision, so that
comparisons line up sensibly.

Modified:
    zorg/trunk/lnt/lnt/db/perfdbsummary.py

Modified: zorg/trunk/lnt/lnt/db/perfdbsummary.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/db/perfdbsummary.py?rev=110921&r1=110920&r2=110921&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/db/perfdbsummary.py (original)
+++ zorg/trunk/lnt/lnt/db/perfdbsummary.py Thu Aug 12 11:03:40 2010
@@ -135,10 +135,12 @@
     def fromdb(db, tag):
         revision = db.get_revision_number("RunInfo")
 
-        # Find all run_orders for runs with this tag.
+        # Find all run_orders for runs with this tag, ordered by run time so
+        # that runs are ordered by both (run_order, time) in the final ordering.
         all_run_orders = db.session.query(RunInfo.value, RunInfo.run_id,
                                           Run.machine_id).\
             join(Run).\
+            order_by(Run.start_time.desc()).\
             filter(RunInfo.key == "run_order").\
             filter(RunInfo.run_id.in_(
                 db.session.query(RunInfo.run_id).\





More information about the llvm-commits mailing list