source:
trunk/anuga_core/source/anuga_parallel/hotshot-view.py
@
8453
Last change on this file since 8453 was 8427, checked in by davies, 12 years ago | |
---|---|
File size: 245 bytes |
Line | |
---|---|
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.