From: Joel Rosdahl Date: Sun, 1 Aug 2010 12:00:22 +0000 (+0200) Subject: perf: Add --nostats option X-Git-Tag: v3.1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89916bf718646f50eb7dc8f2e7a4d52fdeab42c6;p=thirdparty%2Fccache.git perf: Add --nostats option --- diff --git a/perf.py b/perf.py index 010a04c0e..6b8fb8ca6 100755 --- a/perf.py +++ b/perf.py @@ -83,6 +83,8 @@ def test(tmp_dir, options, compiler_args, source_file): environment["CCACHE_COMPRESS"] = "1" if options.hardlink: environment["CCACHE_HARDLINK"] = "1" + if options.nostats: + environment["CCACHE_NOSTATS"] = "1" result = [None] * len(PHASES) @@ -215,6 +217,10 @@ def main(argv): "--hardlink", help="use hard links", action="store_true") + op.add_option( + "--nostats", + help="don't write statistics", + action="store_true") op.add_option( "-n", "--times", help="number of times to compile the file (default: %d)" \ @@ -255,6 +261,7 @@ def main(argv): splitext(argv[-1])[0]) print "Compression:", on_off(options.compression) print "Hardlink:", on_off(options.hardlink) + print "Nostats:", on_off(options.nostats) tmp_dir = "%s/perfdir.%d" % (abspath(options.directory), getpid()) recreate_dir(tmp_dir)