aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-26 19:29:26 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-26 19:29:26 +0200
commit54c6025f575de713b01634c16383e315bab1b3a9 (patch)
treeac6077c96a5b04db62a51e89550b85a3bb730ae6
parentd83888e0dc2bf261f980f1a60688d7a8704add1c (diff)
downloadallocbench-54c6025f575de713b01634c16383e315bab1b3a9.tar.gz
allocbench-54c6025f575de713b01634c16383e315bab1b3a9.zip
remove -vdebug flag
-rwxr-xr-xbench.py8
-rw-r--r--src/util.py2
2 files changed, 3 insertions, 7 deletions
diff --git a/bench.py b/bench.py
index 8772458..52d5382 100755
--- a/bench.py
+++ b/bench.py
@@ -23,8 +23,6 @@ parser.add_argument("-l", "--load", help="load benchmark results from directory"
parser.add_argument("--analyze", help="analyze benchmark behavior using malt", action="store_true")
parser.add_argument("-r", "--runs", help="how often the benchmarks run", default=3, type=int)
parser.add_argument("-v", "--verbose", help="more output", action='count')
-parser.add_argument("-vdebug", "--verbose-debug", help="debug output",
- action='store_true', dest="verbose_debug")
parser.add_argument("-b", "--benchmarks", help="benchmarks to run", nargs='+')
parser.add_argument("-xb", "--exclude-benchmarks", help="explicitly excluded benchmarks", nargs='+')
parser.add_argument("-a", "--allocators", help="allocators to test", type=str, nargs='+')
@@ -80,10 +78,8 @@ def main():
# default | 0: Only print status and errors
# 1: Print warnings and some infos
# 2: Print all infos
- # debug | 99: Print all awailable infos
- if args.verbose_debug:
- src.globalvars.verbosity = 99
- elif args.verbose:
+ # 3: Print all awailable infos
+ if args.verbose:
src.globalvars.verbosity = args.verbose
print_info2("Arguments:", args)
diff --git a/src/util.py b/src/util.py
index 3a9367f..3b4de59 100644
--- a/src/util.py
+++ b/src/util.py
@@ -63,7 +63,7 @@ def allocbench_msg(color, *objects, sep=' ', end='\n', file=sys.stdout):
def print_debug(*objects, sep=' ', end='\n', file=sys.stdout):
- if src.globalvars.verbosity < 99:
+ if src.globalvars.verbosity < 3:
return
print(*objects, sep=sep, end=end, file=file)