[CalendarServer-changes] [6215] CalendarServer/trunk/contrib/performance/stats.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 31 09:45:00 PDT 2010


Revision: 6215
          http://trac.macosforge.org/projects/calendarserver/changeset/6215
Author:   exarkun at twistedmatrix.com
Date:     2010-08-31 09:44:59 -0700 (Tue, 31 Aug 2010)
Log Message:
-----------
Support turning the bytes data into an uploadable format

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/stats.py

Modified: CalendarServer/trunk/contrib/performance/stats.py
===================================================================
--- CalendarServer/trunk/contrib/performance/stats.py	2010-08-31 16:37:03 UTC (rev 6214)
+++ CalendarServer/trunk/contrib/performance/stats.py	2010-08-31 16:44:59 UTC (rev 6215)
@@ -153,5 +153,7 @@
                 time = time / NANO * 1000
                 print row % (time, time / count, count, statement)
 
+
 class Bytes(_Statistic):
-    pass
+    def squash(self, samples):
+        return [sum(bytes) for bytes in samples]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100831/e0e2641d/attachment.html>


More information about the calendarserver-changes mailing list