[CalendarServer-changes] [6558] CalendarServer/trunk/contrib/performance/benchmark.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Nov 2 14:21:39 PDT 2010
Revision: 6558
http://trac.macosforge.org/projects/calendarserver/changeset/6558
Author: exarkun at twistedmatrix.com
Date: 2010-11-02 14:21:37 -0700 (Tue, 02 Nov 2010)
Log Message:
-----------
dtrace the master to measure SQL execution
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/benchmark.py
Modified: CalendarServer/trunk/contrib/performance/benchmark.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark.py 2010-11-02 19:54:52 UTC (rev 6557)
+++ CalendarServer/trunk/contrib/performance/benchmark.py 2010-11-02 21:21:37 UTC (rev 6558)
@@ -70,7 +70,10 @@
self.started.errback(RuntimeError("Exited too soon: %r/%r" % (self._out, self._err)))
+def masterPID(directory):
+ return int(directory.child('caldavd.pid').getContent())
+
def instancePIDs(directory):
pids = []
for pidfile in directory.children():
@@ -271,7 +274,7 @@
def benchmark(host, port, directory, label, benchmarks):
# Figure out which pids we are benchmarking.
if directory:
- pids = instancePIDs(directory)
+ pids = [masterPID(directory)]
else:
pids = []
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101102/329175eb/attachment.html>
More information about the calendarserver-changes
mailing list