From f367e94e5707de17ceca558218ee3c8856a46144 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Fri, 3 Jun 2011 12:31:07 +0100 Subject: [PATCH] DO NOT MERGE: cProfile for accept-private-stream-tube.py --- tests/twisted/tubes/accept-private-stream-tube.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/tests/twisted/tubes/accept-private-stream-tube.py b/tests/twisted/tubes/accept-private-stream-tube.py index 8dcb635..64960a8 100644 --- a/tests/twisted/tubes/accept-private-stream-tube.py +++ b/tests/twisted/tubes/accept-private-stream-tube.py @@ -289,5 +289,11 @@ def test(q, bus, conn, stream, bytestream_cls, EventPattern('dbus-signal', signal='Closed'), EventPattern('dbus-signal', signal='ChannelClosed')) -if __name__ == '__main__': +def main(): t.exec_stream_tube_test(test) + +if __name__ == '__main__': + import cProfile + from datetime import datetime + cProfile.run('main()', + '/home/wjt/src/tp/gabble/accept-private-stream-tube-%s.prof' % datetime.now().isoformat()) -- 1.7.5.3