aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-07 22:40:02 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-07 22:40:02 (GMT)
commitce1fe76c76f1a6ab0c7f7e1080afd88f4fe969f6 (patch)
treec67d8c5ee37315a5ba6036ab227c93fa3fff869c
parent289212fe75c6565877945fcd150a243e3fa0bc3b (diff)
downloadfusearchive-ce1fe76c76f1a6ab0c7f7e1080afd88f4fe969f6.zip
fusearchive-ce1fe76c76f1a6ab0c7f7e1080afd88f4fe969f6.tar.gz
fusearchive-ce1fe76c76f1a6ab0c7f7e1080afd88f4fe969f6.tar.bz2
Switched to cProfile
-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()