[CalendarServer-changes] [6134] CalendarServer/trunk/contrib/performance
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 19 11:47:46 PDT 2010
Revision: 6134
http://trac.macosforge.org/projects/calendarserver/changeset/6134
Author: exarkun at twistedmatrix.com
Date: 2010-08-19 11:47:45 -0700 (Thu, 19 Aug 2010)
Log Message:
-----------
improve error reporting and bump the string size so vcal objects fit
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/sql_measure.d
CalendarServer/trunk/contrib/performance/sqlwatch.py
Modified: CalendarServer/trunk/contrib/performance/sql_measure.d
===================================================================
--- CalendarServer/trunk/contrib/performance/sql_measure.d 2010-08-19 18:47:14 UTC (rev 6133)
+++ CalendarServer/trunk/contrib/performance/sql_measure.d 2010-08-19 18:47:45 UTC (rev 6134)
@@ -2,7 +2,7 @@
/*
* Make almost all query strings fit.
*/
-#pragma D option strsize=1024
+#pragma D option strsize=8192
dtrace:::BEGIN
{
Modified: CalendarServer/trunk/contrib/performance/sqlwatch.py
===================================================================
--- CalendarServer/trunk/contrib/performance/sqlwatch.py 2010-08-19 18:47:14 UTC (rev 6133)
+++ CalendarServer/trunk/contrib/performance/sqlwatch.py 2010-08-19 18:47:45 UTC (rev 6134)
@@ -2,6 +2,7 @@
import sys, os, signal, time
from pprint import pprint
+from twisted.python.log import err
from twisted.python.failure import Failure
from twisted.internet.defer import Deferred, inlineCallbacks
from twisted.internet import reactor
@@ -53,6 +54,9 @@
def main():
+ from twisted.python.failure import startDebugMode
+ startDebugMode()
+
pids = []
for pidfile in os.listdir(sys.argv[1]):
if pidfile.startswith('caldav-instance-'):
@@ -61,5 +65,6 @@
pid = int(pidtext)
pids.append(pid)
d = collect(pids)
+ d.addErrback(err, "Problem collecting SQL")
d.addBoth(lambda ign: reactor.stop())
reactor.run(installSignalHandlers=False)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100819/ec8753e3/attachment.html>
More information about the calendarserver-changes
mailing list