Skip to content

Commit

Permalink
add profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
torhve committed Jun 20, 2011
1 parent e193d73 commit 01f09a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/prof.py
@@ -0,0 +1,9 @@
#!/usr/bin/python

import hotshot.stats
import sys

stats = hotshot.stats.load(sys.argv[1])
#stats.strip_dirs()
stats.sort_stats('time', 'calls')
stats.print_stats(20)

0 comments on commit 01f09a8

Please sign in to comment.