~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/lsprof.py

  • Committer: Robey Pointer
  • Date: 2006-12-21 01:09:00 UTC
  • Revision ID: robey@lag.net-20061221010900-auqh80g9z7r8v5tu
use bzr.dev as the branch name now that it's okay

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        for pp in _g_threadmap.values():
37
37
            pp.disable()
38
38
        threading.setprofile(None)
39
 
 
 
39
    
40
40
    threads = {}
41
41
    for tid, pp in _g_threadmap.items():
42
42
        threads[tid] = Stats(pp.getstats(), {})
112
112
        self.out_file = None
113
113
 
114
114
    def output(self, out_file):
115
 
        self.out_file = out_file
 
115
        self.out_file = out_file        
116
116
        print >> out_file, 'events: Ticks'
117
117
        self._print_summary()
118
118
        for entry in self.data: