~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/lsprof.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-12-18 15:18:11 UTC
  • mfrom: (143.1.1 faster-history-creation)
  • Revision ID: launchpad@pqm.canonical.com-20071218151811-1tp4y6box2huzjf0
[r=jamesh] merge in change from Aaron Bentley that significantly speeds up history creation

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: