diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-01-15 19:58:18 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-01-15 20:00:01 +0100 |
| commit | 24d79ca74b0cd41f9a1bbc32b1be76830de55042 (patch) | |
| tree | a3dd6348192ae903b8d5de7c6dacfe0d9b6055d3 | |
| parent | 81d2dd588dd5b2c6b66e38040479241dbe9af25a (diff) | |
| download | allocbench-24d79ca74b0cd41f9a1bbc32b1be76830de55042.tar.gz allocbench-24d79ca74b0cd41f9a1bbc32b1be76830de55042.zip | |
add license switch
| -rw-r--r-- | Readme.md | 3 | ||||
| -rwxr-xr-x | bench.py | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -9,7 +9,7 @@ git clone https://muhq.space/software/allocbench.git ## Usage usage: bench.py [-h] [-s] [-l] [-r RUNS] [-v] [-b BENCHMARKS [BENCHMARKS ...]] - [-ns] [-sd SUMMARYDIR] [-a] [--nolibmemusage] + [-ns] [-sd SUMMARYDIR] [-a] [--nolibmemusage] [--license] benchmark memory allocators @@ -26,6 +26,7 @@ git clone https://muhq.space/software/allocbench.git directory where all plots and the summary go -a, --analyse collect allocation sizes --nolibmemusage don't use libmemusage to analyse + --license print license info and exit ## License @@ -16,10 +16,16 @@ parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_ parser.add_argument("-sd", "--summarydir", help="directory where all plots and the summary go", type=str) parser.add_argument("-a", "--analyse", help="collect allocation sizes", action='store_true') parser.add_argument("--nolibmemusage", help="don't use libmemusage to analyse", action='store_true') +parser.add_argument("--license", help="print license info and exit", action='store_true') def main(): args = parser.parse_args() - print (args) + if args.license: + print("Copyright (C) 2018-1029 Florian Fischer") + print("License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>") + return + if args.verbose: + print(args) if args.summarydir and not os.path.isdir(args.summarydir): os.makedirs(args.summarydir) |
