diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 22:49:58 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 22:49:58 (GMT) |
commit | d174f0a7e811489375bd489cb6b1da31a73a4074 (patch) | |
tree | a51d5b3940a297fb6fa7fe67f072393c9cbe4f47 | |
parent | d7fd21411e7c2168cef2195c613133a71342127e (diff) | |
download | fusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.zip fusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.tar.gz fusearchive-d174f0a7e811489375bd489cb6b1da31a73a4074.tar.bz2 |
Added some un-commentables for profiling
-rwxr-xr-x | fusearchive.py | 17 |
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() |