~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 01:00:32 UTC
  • mto: This revision was merged to the branch mainline in revision 426.
  • Revision ID: john@arbash-meinel.com-20110210010032-3c1ngxr9rlnlla6o
Avoid getting a lazy object error by instantiating an
http transport before we do any other work.
Add a script which works against multiple concurrent services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        def run(self, filename):
152
152
            from bzrlib.plugins.loggerhead.loggerhead import load_test
153
153
            script = load_test.run_script(filename)
154
 
            for worker,_  in script._threads.itervalues():
 
154
            for thread_id in sorted(script._threads):
 
155
                worker = script._threads[thread_id][0]
155
156
                for url, success, time in worker.stats:
156
157
                    self.outf.write(' %5.3fs %s %s\n'
157
158
                                    % (time, str(success)[0], url))