~mnordhoff/loggerhead/cheezum

« back to all changes in this revision

Viewing changes to loggerhead/lsprof.py

  • Committer: Michael Hudson
  • Date: 2008-02-27 03:36:09 UTC
  • mto: This revision was merged to the branch mainline in revision 146.
  • Revision ID: michael.hudson@canonical.com-20080227033609-6xz80buvasyekl6a
run reindent.py over the loggerhead package

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: