From d174f0a7e811489375bd489cb6b1da31a73a4074 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Jul 2009 15:49:58 -0700 Subject: Added some un-commentables for profiling 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() -- cgit v0.10.2