source: inundation/parallel/hotshot-view.py @ 3041

Last change on this file since 3041 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
2import sys
3import hotshot.stats
4
5if len(sys.argv) == 2:
6    stats = hotshot.stats.load(sys.argv[1])
7    stats.strip_dirs().sort_stats('cumulative').print_stats(20)
8else:
9    print "Usage: %s profile_filename" % sys.argv[0]
Note: See TracBrowser for help on using the repository browser.