source:
trunk/anuga_work/development/parallel/hotshot-view.py
@
8427
Last change on this file since 8427 was 8427, checked in by , 13 years ago | |
---|---|
File size: 245 bytes |
Rev | Line | |
---|---|---|
[3041] | 1 | #!/usr/bin/env python |
2 | import sys | |
3 | import hotshot.stats | |
4 | ||
5 | if len(sys.argv) == 2: | |
6 | stats = hotshot.stats.load(sys.argv[1]) | |
7 | stats.strip_dirs().sort_stats('cumulative').print_stats(20) | |
8 | else: | |
9 | print "Usage: %s profile_filename" % sys.argv[0] |
Note: See TracBrowser
for help on using the repository browser.