aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-23 22:49:58 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-23 22:49:58 (GMT)
commitd174f0a7e811489375bd489cb6b1da31a73a4074 (patch)
treea51d5b3940a297fb6fa7fe67f072393c9cbe4f47
parentd7fd21411e7c2168cef2195c613133a71342127e (diff)
downloadfusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.zip
fusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.tar.gz
fusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.tar.bz2
Added some un-commentables for profiling
-rwxr-xr-xfusearchive.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 2d1f390..891872a 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -26,7 +26,7 @@ fuse.feature_assert('stateful_files', 'has_init')
magic_blocksize = 1024 * 32
magic_depth = 5
-debug_level = 1
+debug_level = 0
def dmsg(level,message):
if level <= debug_level:
@@ -607,4 +607,17 @@ Userspace nullfs-alike: mirror the filesystem tree from some point on.
if __name__ == '__main__':
- main()
+ # Import Psyco if available
+ # doesn't seem to make a difference, must not be on this end
+ #try:
+ # import psyco
+ # psyco.full()
+ #except ImportError:
+ # pass
+ if False:
+ import hotshot
+ prof = hotshot.Profile( "fusearchive_stats" )
+ prof.runcall(main)
+ prof.close()
+ else:
+ main()