[CalendarServer-changes] [7661] CalendarServer/trunk/contrib/performance
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 24 14:39:39 PDT 2011
Revision: 7661
http://trac.macosforge.org/projects/calendarserver/changeset/7661
Author: wsanchez at apple.com
Date: 2011-06-24 14:39:38 -0700 (Fri, 24 Jun 2011)
Log Message:
-----------
pyflakes cleanup
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/benchmark.py
CalendarServer/trunk/contrib/performance/loadtest/ical.py
CalendarServer/trunk/contrib/performance/loadtest/logger.py
CalendarServer/trunk/contrib/performance/loadtest/profiles.py
CalendarServer/trunk/contrib/performance/loadtest/test_sim.py
CalendarServer/trunk/contrib/performance/loadtest/trafficlogger.py
CalendarServer/trunk/contrib/performance/setbackend.py
CalendarServer/trunk/contrib/performance/stats.py
Modified: CalendarServer/trunk/contrib/performance/benchmark.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/benchmark.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -24,7 +24,6 @@
from twisted.python.filepath import FilePath
from twisted.python.usage import UsageError, Options, portCoerce
-from twisted.python.reflect import namedAny
from twisted.internet.protocol import ProcessProtocol
from twisted.protocols.basic import LineReceiver
from twisted.internet.defer import (
Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -16,8 +16,6 @@
##
from uuid import uuid4
-from operator import getitem
-from pprint import pformat
from datetime import timedelta, datetime
from urlparse import urlparse, urlunparse
@@ -31,7 +29,7 @@
from twisted.python.log import addObserver, err, msg
from twisted.python.filepath import FilePath
from twisted.python.failure import Failure
-from twisted.internet.defer import Deferred, inlineCallbacks, returnValue
+from twisted.internet.defer import inlineCallbacks, returnValue
from twisted.internet.task import LoopingCall
from twisted.web.http_headers import Headers
from twisted.web.http import OK, MULTI_STATUS, CREATED, NO_CONTENT
@@ -691,7 +689,6 @@
"""
outbox = self.root + 'calendars/__uids__/%s/outbox/' % (
self.user.encode('utf-8'),)
- headers = Headers()
if mask:
maskStr = u'\r\n'.join(['X-CALENDARSERVER-MASK-UID:' + uid
Modified: CalendarServer/trunk/contrib/performance/loadtest/logger.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/logger.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/loadtest/logger.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -1,4 +1,4 @@
-from stats import mean, median, stddev, mad
+from stats import mean, median
class SummarizingMixin(object):
def printHeader(self, fields):
Modified: CalendarServer/trunk/contrib/performance/loadtest/profiles.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/profiles.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/loadtest/profiles.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -31,13 +31,13 @@
from protocol.caldav.definitions import caldavxml
from twisted.python import context
-from twisted.python.log import msg, err
+from twisted.python.log import msg
from twisted.python.failure import Failure
from twisted.internet.defer import Deferred, succeed, fail
from twisted.internet.task import LoopingCall
from twisted.web.http import PRECONDITION_FAILED
-from stats import NearFutureDistribution, NormalDistribution, UniformDiscreteDistribution, mean, median
+from stats import NearFutureDistribution, NormalDistribution, UniformDiscreteDistribution, mean
from loadtest.logger import SummarizingMixin
from loadtest.ical import IncorrectResponseCode
Modified: CalendarServer/trunk/contrib/performance/loadtest/test_sim.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/test_sim.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/loadtest/test_sim.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -15,20 +15,14 @@
#
##
-from operator import setitem
from plistlib import writePlistToString
-from zope.interface.verify import verifyClass
-
-from twisted.python.log import LogPublisher, theLogPublisher, msg
+from twisted.python.log import msg
from twisted.python.usage import UsageError
from twisted.python.filepath import FilePath
from twisted.trial.unittest import TestCase
-from twisted.internet.defer import succeed
-from twisted.internet.task import Clock
-from twistedcaldav.directory.idirectory import IDirectoryService
-from twistedcaldav.directory.directory import DirectoryService, DirectoryRecord
+from twistedcaldav.directory.directory import DirectoryRecord
from stats import NormalDistribution
from loadtest.ical import SnowLeopard
@@ -37,7 +31,7 @@
SmoothRampUp, ClientType, PopulationParameters, Populator, CalendarClientSimulator,
ProfileType, SimpleStatistics)
from loadtest.sim import (
- Arrival, SimOptions, LoadSimulator, LagTrackingReactor, main)
+ Arrival, SimOptions, LoadSimulator, LagTrackingReactor)
VALID_CONFIG = {
'server': 'tcp:127.0.0.1:8008',
Modified: CalendarServer/trunk/contrib/performance/loadtest/trafficlogger.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/trafficlogger.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/loadtest/trafficlogger.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -29,7 +29,7 @@
from zope.interface import providedBy
from twisted.python.components import proxyForInterface
-from twisted.internet.interfaces import IReactorCore, IReactorTime, IReactorTCP
+from twisted.internet.interfaces import IReactorTCP
from twisted.protocols.policies import WrappingFactory, TrafficLoggingProtocol
Modified: CalendarServer/trunk/contrib/performance/setbackend.py
===================================================================
--- CalendarServer/trunk/contrib/performance/setbackend.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/setbackend.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -22,7 +22,6 @@
import sys
from xml.etree import ElementTree
-from xml.etree import ElementPath
def main():
conf = ElementTree.parse(file(sys.argv[1]))
Modified: CalendarServer/trunk/contrib/performance/stats.py
===================================================================
--- CalendarServer/trunk/contrib/performance/stats.py 2011-06-24 21:30:02 UTC (rev 7660)
+++ CalendarServer/trunk/contrib/performance/stats.py 2011-06-24 21:39:38 UTC (rev 7661)
@@ -216,7 +216,7 @@
discrete buckets (eg, as would be suitable for constructing a
histogram of the values).
"""
- buckets = {}
+ #buckets = {}
return []
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110624/43e0a7e4/attachment-0001.html>
More information about the calendarserver-changes
mailing list