]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
perf: Add --nostats option
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Aug 2010 12:00:22 +0000 (14:00 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Aug 2010 15:20:33 +0000 (17:20 +0200)
perf.py

diff --git a/perf.py b/perf.py
index 010a04c0efc011306f74d7a4d2ad3840344f6b01..6b8fb8ca64798a87a57c7e685d5446d68d4f059e 100755 (executable)
--- 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)