From ce1fe76c76f1a6ab0c7f7e1080afd88f4fe969f6 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Fri, 7 Aug 2009 15:40:02 -0700 Subject: Switched to cProfile diff --git a/fusearchive.py b/fusearchive.py index 4df4116..09d2e80 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -10,7 +10,7 @@ import logging, sys, os, fuse import FuseArchive -enable_stats = False +enable_stats = True enable_psyco = False if enable_psyco: @@ -67,10 +67,9 @@ def main(): server.main() if enable_stats: - import hotshot - prof = hotshot.Profile( "fusearchive_stats" ) - prof.runcall(main) - prof.close() + import cProfile + print "Note:stats are in the server root, not the caller cwd()" + cProfile.run( 'main()', "fusearchive_stats" ) else: main() -- cgit v0.10.2