[open-ils-commits] r948 - constrictor/trunk/constrictor (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 4 09:33:12 EDT 2010
Author: erickson
Date: 2010-08-04 09:33:10 -0400 (Wed, 04 Aug 2010)
New Revision: 948
Modified:
constrictor/trunk/constrictor/data.py
Log:
log the thread count in the final summary data
Modified: constrictor/trunk/constrictor/data.py
===================================================================
--- constrictor/trunk/constrictor/data.py 2010-08-03 22:07:29 UTC (rev 947)
+++ constrictor/trunk/constrictor/data.py 2010-08-04 13:33:10 UTC (rev 948)
@@ -141,10 +141,16 @@
if counter %100 == 0:
log.log_info("Inserted %d rows" % counter)
+ from properties import Properties
+ props = Properties.get_properties()
+ threads = int(props.get_property('constrictor.numThreads'))
+
+
# log some basic stats
task_set_time = end_time - self.task_set_start_time
log.log_info("-"*70)
log.log_info("Task Set -> %s" % str(self.task_set_name))
+ log.log_info("Thread Count -> %s" % str(threads))
log.log_info("Task Counts -> %s" % str(task_counts))
log.log_info("Total Tasks -> %d" % len(self.runtime_data))
log.log_info("Total time -> %0.3f seconds" % task_set_time)
More information about the open-ils-commits
mailing list