mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-09 19:14:02 +00:00
code_size_compare: add extra indication if print to sys.stdout
If we output comparison result into sys.stdout, it will print an extra line to show information we used for code size comparison in detail. This would be helpful if we copy & paste code size changes in Github comment. Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
a6cf692e2a
commit
69262fc087
@ -768,6 +768,10 @@ class CodeSizeComparison:
|
||||
self.new_size_dist_info.git_rev))
|
||||
if self.result_options.stdout:
|
||||
output = sys.stdout
|
||||
print("Measure code size between `{}` and `{}` by `{}`."
|
||||
.format(self.old_size_dist_info.get_info_indication(),
|
||||
self.new_size_dist_info.get_info_indication(),
|
||||
self.size_common_info.get_info_indication()))
|
||||
else:
|
||||
output_file = os.path.join(
|
||||
self.comp_dir,
|
||||
|
Loading…
x
Reference in New Issue
Block a user