[Neo-report] r2445 gregory - /trunk/tools/matrix

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 9 16:58:14 CET 2010


Author: gregory
Date: Tue Nov  9 16:58:13 2010
New Revision: 2445

Log:
Include traceback of failed imports in matrix benchmark.

Modified:
    trunk/tools/matrix

Modified: trunk/tools/matrix
==============================================================================
--- trunk/tools/matrix [iso-8859-1] (original)
+++ trunk/tools/matrix [iso-8859-1] Tue Nov  9 16:58:13 2010
@@ -17,6 +17,8 @@ MAX_REPLICAS = 1
 
 class MatrixImportBenchmark(BenchmarkRunner):
 
+    error_log = ''
+
     def add_options(self, parser):
         parser.add_option('-d', '--datafs')
         parser.add_option('', '--min-storages')
@@ -85,6 +87,9 @@ class MatrixImportBenchmark(BenchmarkRun
                 return time() - start
             except:
                 traceback.print_exc()
+                self.error_log += "Import with m=%s, s=%s, r=%s, p=%s:" % (
+                    masters, storages, replicas, partitions)
+                self.error_log += "\n%s\n" % ''.join(traceback.format_stack())
                 return None
         finally:
             neo.stop()
@@ -118,6 +123,7 @@ class MatrixImportBenchmark(BenchmarkRun
                     values.append('N/A')
             report += fmt % (tuple([s] + values))
             report += sep
+        report += self.error_log
         if failures:
             info = '%d failures' % (failures, )
         else:





More information about the Neo-report mailing list