Permalink
Browse files

add profiler

  • Loading branch information...
torhve committed Jun 20, 2011
1 parent e193d73 commit 01f09a8ea86fb4944855ed90abe685c54dbe7dd1
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/prof.py
View
@@ -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.