Last change
on this file since 3413 was
3041,
checked in by jack, 18 years ago
|
Added a script to quickly view hotshot format profiles, and the test script
for a profiled advection scenario.
|
-
Property svn:executable set to
*
|
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.