Commit eaed951e authored by Anas Nashif's avatar Anas Nashif
Browse files

size_report: add --quiet argument


Add a new argument to allow generating json files without printing the
complete diff on the screen.
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent f026b470
......@@ -711,6 +711,8 @@ def parse_args():
help="Zephyr ELF binary")
parser.add_argument("-z", "--zephyrbase", required=True,
help="Zephyr base path")
parser.add_argument("-q", "--quiet", action="store_true",
help="Do not output anything on the screen.")
parser.add_argument("-o", "--output", required=True,
help="Output path")
parser.add_argument("-w", "--workspace", default=None,
......@@ -777,7 +779,8 @@ def main():
print("INFO: Unmapped symbol: {0}".format(sym))
root = generate_any_tree(symbol_dict, symsize, common_path_prefix)
print_any_tree(root, symsize, args.depth)
if not args.quiet:
print_any_tree(root, symsize, args.depth)
if args.json:
exporter = DictExporter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment