From f95912f7db95587df2b1cf4cae3cf26cf3caa7d8 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Fri, 24 Jul 2009 09:18:44 -0700 Subject: Made stats a flag, moved around flags to group related ones together diff --git a/fusearchive.py b/fusearchive.py index d5d82af..b63f35d 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -24,13 +24,15 @@ fuse.fuse_python_api = (0, 2) fuse.feature_assert('stateful_files', 'has_init') +magic_profiling = False +enable_stats = False +debug_level = 0 + +# These control some of the file output magic_blocksize = 1024 * 128 magic_depth = 5 -debug_level = 0 gzip_compress_level = 6 -magic_profiling = False - # Memory for dirty blocks, per file (1M) dirty_size = 1024 * 1024 * 1; # This is the number of actualy blocks in that size @@ -685,7 +687,7 @@ if __name__ == '__main__': # psyco.full() #except ImportError: # pass - if True: + if enable_stats: import hotshot prof = hotshot.Profile( "fusearchive_stats" ) prof.runcall(main) -- cgit v0.10.2