[CalendarServer-changes] [7098] CalendarServer/trunk/contrib/performance/loadtest/population.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 4 07:16:55 PST 2011
Revision: 7098
http://trac.macosforge.org/projects/calendarserver/changeset/7098
Author: exarkun at twistedmatrix.com
Date: 2011-03-04 07:16:55 -0800 (Fri, 04 Mar 2011)
Log Message:
-----------
Give the default observer a no-op report method for convenience of subclasses, and change the other "summarize" uses to "report".
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/population.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/population.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/population.py 2011-03-04 03:04:40 UTC (rev 7097)
+++ CalendarServer/trunk/contrib/performance/loadtest/population.py 2011-03-04 15:16:55 UTC (rev 7098)
@@ -185,7 +185,11 @@
self.eventReceived(event)
+ def report(self):
+ pass
+
+
class SimpleStatistics(StatisticsBase):
def __init__(self):
self._times = []
@@ -249,7 +253,7 @@
print format % values
- def summarize(self):
+ def report(self):
print
self._printHeader()
for method, data in self._perMethodTimes.iteritems():
@@ -284,7 +288,7 @@
arrivalPolicy.run(reactor, simulator)
reactor.run()
- report.summarize()
+ report.report()
if __name__ == '__main__':
main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110304/2ab161b4/attachment.html>
More information about the calendarserver-changes
mailing list