diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-07-24 16:18:44 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-07-24 16:18:44 (GMT) |
commit | f95912f7db95587df2b1cf4cae3cf26cf3caa7d8 (patch) | |
tree | 142e72cc6230cd65cae63a738c804f1c856d5e51 | |
parent | 63cb5f8b805a77f0d228f97fa12007f7e83d87b0 (diff) | |
download | fusearchive-f95912f7db95587df2b1cf4cae3cf26cf3caa7d8.zip fusearchive-f95912f7db95587df2b1cf4cae3cf26cf3caa7d8.tar.gz fusearchive-f95912f7db95587df2b1cf4cae3cf26cf3caa7d8.tar.bz2 |
Made stats a flag, moved around flags to group related ones together
-rwxr-xr-x | fusearchive.py | 10 |
1 files changed, 6 insertions, 4 deletions
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) |