[pypy-svn] r59635 - pypy/build/benchmem

fijal at codespeak.net fijal at codespeak.net
Sat Nov 1 19:54:34 CET 2008


Author: fijal
Date: Sat Nov  1 19:54:32 2008
New Revision: 59635

Modified:
   pypy/build/benchmem/report.py
Log:
Options for showing


Modified: pypy/build/benchmem/report.py
==============================================================================
--- pypy/build/benchmem/report.py	(original)
+++ pypy/build/benchmem/report.py	Sat Nov  1 19:54:32 2008
@@ -16,6 +16,8 @@
                   default="", help="optional path to store picture output")
 parser.add_option("-t", "--no-text", action="store_true", dest="notext",
                   help="disable text reporting")
+parser.add_option("-s", "--show", action="store_true", dest="show",
+                  help="show pictures")
 
 def asciitable(table):
     colmax = []
@@ -124,10 +126,10 @@
         if not resultset.results:
             return
         names = [name for name, _ in resultset.getname2results()]
-        results = resultset.getname2results()
-        benchresults = [[] for _ in range(len(results[0]))]
-        executables = [result.executable for result in results[0][1]]
-        for _, results in results:
+        allresults = resultset.getname2results()
+        benchresults = [[] for _ in range(len(allresults[0][1]))]
+        executables = [result.executable for result in allresults[0][1]]
+        for _, results in allresults:
             for i, result in enumerate(results):
                 benchresults[i].append(self.get_incremental_size(result))
         plotter.plot_objsizes(benchresults, names, executables)
@@ -275,9 +277,9 @@
         BaseSizeOfInterpreters(resultset).run()
         BaseTimeOfInterpreters(resultset).run()
 
-    if options.basepath:
+    if options.basepath or options.show:
         from report_graphic import Plotter
-        plotter = Plotter(options.basepath)
+        plotter = Plotter(options.basepath, options.show)
         #plotter = Plotter(None, True)
         IncrementalSizePerBench(resultset).run_graphic(plotter)
         totals = BaseSizeOfInterpreters(resultset).run_graphic(plotter)



More information about the Pypy-commit mailing list