Author: justi9
Date: 2007-10-12 22:04:26 -0400 (Fri, 12 Oct 2007)
New Revision: 1037
Modified:
mgmt/cumin/bin/cumin-test
mgmt/cumin/python/wooly/devel.py
mgmt/cumin/python/wooly/model.py
Log:
More cumin-test updates.
Modified: mgmt/cumin/bin/cumin-test
===================================================================
--- mgmt/cumin/bin/cumin-test 2007-10-13 01:40:04 UTC (rev 1036)
+++ mgmt/cumin/bin/cumin-test 2007-10-13 02:04:26 UTC (rev 1037)
@@ -62,8 +62,8 @@
except KeyboardInterrupt:
stats = pstats.Stats(stats_file)
- stats.sort_stats("cumulative").print_stats(15)
- stats.sort_stats("time").print_stats(15)
+ stats.sort_stats("cumulative").print_stats(40)
+ stats.sort_stats("time").print_stats(40)
stats.strip_dirs()
else:
Modified: mgmt/cumin/python/wooly/devel.py
===================================================================
--- mgmt/cumin/python/wooly/devel.py 2007-10-13 01:40:04 UTC (rev 1036)
+++ mgmt/cumin/python/wooly/devel.py 2007-10-13 02:04:26 UTC (rev 1037)
@@ -9,12 +9,18 @@
self.app = app
def run(self):
+ visited = set()
self.app.debug.urls.add("")
count = 0
while True:
- url = sample(self.app.debug.urls, 1)[0]
+ try:
+ url = self.app.debug.urls.pop()
+ except KeyError:
+ return
+ visited.add(url)
+
start = clock()
session = Session(self.app)
Modified: mgmt/cumin/python/wooly/model.py
===================================================================
--- mgmt/cumin/python/wooly/model.py 2007-10-13 01:40:04 UTC (rev 1036)
+++ mgmt/cumin/python/wooly/model.py 2007-10-13 02:04:26 UTC (rev 1037)
@@ -16,6 +16,9 @@
def unlock(self):
self.__lock.release()
+ def get_object(self, mclass, id):
+ self.get_index(mclass).get(id)
+
class ModelClass(object):
def __init__(self, model, name):
self.model = model