ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/AnalyzeProfile.py
Revision: 1.1
Committed: Thu Apr 6 16:18:32 2006 UTC (19 years ago) by slacapra
Content type: text/x-python
Branch: MAIN
CVS Tags: CRAB_1_1_0, CRAB_1_1_0_pre4, CRAB_1_1_0_pre3, CRAB_1_1_0_pre1
Log Message:
profile analyzer for crab

File Contents

# User Rev Content
1 slacapra 1.1 #!/usr/bin/env python2.2
2     import profile
3    
4     ###########################################################################
5     if __name__ == '__main__':
6    
7     import pstats
8     p = pstats.Stats('crab.profile')
9    
10     p.strip_dirs().sort_stats(-1).print_stats()
11     p.sort_stats('name')
12     p.print_stats()
13    
14     p.sort_stats('cumulative').print_stats(50)
15    
16     # p.sort_stats('file').print_stats('__init__')
17    
18     # p.sort_stats('time', 'cum').print_stats(.5, 'init')
19    
20     # p.print_callers(.5, 'init')
21    
22     # p.print_callees()
23     #p.add('fooprof')
24    
25    
26