~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/lsprof.py

  • Committer: Robey Pointer
  • Date: 2006-12-20 00:43:10 UTC
  • Revision ID: robey@lag.net-20061220004310-8twtvx7mtt48d75z
add footer banners for bazaar and loggerhead, and slightly improve the config
file docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#
3
1
# this is copied from the lsprof distro because somehow
4
2
# it is not installed by distutils
5
3
# I made one modification to profile so that it returns a pair
38
36
        for pp in _g_threadmap.values():
39
37
            pp.disable()
40
38
        threading.setprofile(None)
41
 
 
 
39
    
42
40
    threads = {}
43
41
    for tid, pp in _g_threadmap.items():
44
42
        threads[tid] = Stats(pp.getstats(), {})
114
112
        self.out_file = None
115
113
 
116
114
    def output(self, out_file):
117
 
        self.out_file = out_file
 
115
        self.out_file = out_file        
118
116
        print >> out_file, 'events: Ticks'
119
117
        self._print_summary()
120
118
        for entry in self.data: