[llvm-commits] [zorg] r108305 - in /zorg/trunk/lnt/lnt: db/perfdbsummary.py viewer/PerfDB.py
Daniel Dunbar
daniel at zuster.org
Tue Jul 13 18:39:46 PDT 2010
Author: ddunbar
Date: Tue Jul 13 20:39:46 2010
New Revision: 108305
URL: http://llvm.org/viewvc/llvm-project?rev=108305&view=rev
Log:
LNT: Add Test.get_parameter_set helper method.
Modified:
zorg/trunk/lnt/lnt/db/perfdbsummary.py
zorg/trunk/lnt/lnt/viewer/PerfDB.py
Modified: zorg/trunk/lnt/lnt/db/perfdbsummary.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/db/perfdbsummary.py?rev=108305&r1=108304&r2=108305&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/db/perfdbsummary.py (original)
+++ zorg/trunk/lnt/lnt/db/perfdbsummary.py Tue Jul 13 20:39:46 2010
@@ -55,9 +55,7 @@
for t in tests:
name = t.name.split('.', 1)[1]
- items = [(k,v.value) for k,v in t.info.items()]
- items.sort()
- key = tuple(items)
+ key = t.get_parameter_set()
parameter_sets.add(key)
test_id_map[(name, key)] = t.id
Modified: zorg/trunk/lnt/lnt/viewer/PerfDB.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/viewer/PerfDB.py?rev=108305&r1=108304&r2=108305&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/viewer/PerfDB.py (original)
+++ zorg/trunk/lnt/lnt/viewer/PerfDB.py Tue Jul 13 20:39:46 2010
@@ -118,6 +118,11 @@
return '%s%r' % (self.__class__.__name__,
(self.name,))
+ def get_parameter_set(self):
+ items = [(k,v.value) for k,v in self.info.items()]
+ items.sort()
+ return tuple(items)
+
class TestInfo(Base):
__tablename__ = 'TestInfo'
More information about the llvm-commits
mailing list