~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/lsprof.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2008-02-27 11:38:19 UTC
  • mfrom: (144.1.10 fix-pyflakes-notes)
  • Revision ID: launchpad@pqm.canonical.com-20080227113819-soawqhenqe9znu1p
[r=thumper][!log] remove unused files and imports and normalize the whitespace

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: