gethtml: Add load dimenstion
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 9 Dec 2010 23:26:28 +0000 (00:26 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 9 Dec 2010 23:26:28 +0000 (00:26 +0100)
gw-tests/genhtml/genhtml.py

index 8a94dc8..3dbb4f0 100755 (executable)
@@ -117,6 +117,10 @@ class DimensionTest(Dimension):
     def htmlTableHeading(self, v):
        return v+"<br><a href='%s.sh.html'>source</a>"%(urllib.quote(v))
 
+class DimensionLoad(Dimension):
+    def __init__(self):
+       Dimension.__init__(self, 'load', 'Load')
+
 class DimensionTraffic(Dimension):
     def __init__(self):
        Dimension.__init__(self, 'traf', 'Traffic')
@@ -168,7 +172,6 @@ class Test(object):
             links = []
             for v in d:
                 if v in self.values:
-                    print "XXX", repr(v)
                     links.append(str(v))
                 else:
                     vv = DimValues(self.values)
@@ -355,6 +358,6 @@ class Page(object):
 if __name__ == "__main__":
     os.chdir(sys.argv[1])
     os.system("rm *.html")
-    tests = Tests("./", Space(DimensionHostKern(), DimensionKern(), DimensionTraffic(), DimensionTest()))
+    tests = Tests("./", Space(DimensionHostKern(), DimensionKern(), DimensionTraffic(), DimensionLoad(), DimensionTest()))
     tests.generateHtml()
     sys.exit(0)