aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfusearchive.py9
1 files changed, 4 insertions, 5 deletions
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()