mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
pw_bloat: Fix double printing ASCII table
Printed size report every time a new diff report was calculated, causing the pw watch to print out lots of duplicate tables before finishing the entire size report. Change-Id: I2c5fa8a6d875ba6e729a14c30e67d2776a566239 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/109013 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Brandon Vu <brandonvu@google.com>
This commit is contained in:
parent
4a117c70b6
commit
2b9ac8f0d6
|
@ -234,14 +234,13 @@ def main() -> int:
|
|||
MAX_COL_WIDTH,
|
||||
LineCharset,
|
||||
diff_label=curr_diff_binary['label']).create_table()
|
||||
|
||||
print(diff_report)
|
||||
curr_rst_report = RstOutput(diff_dsm, curr_diff_binary['label'])
|
||||
if rst_diff_report == '':
|
||||
rst_diff_report = curr_rst_report.create_table()
|
||||
else:
|
||||
rst_diff_report += f"{curr_rst_report.add_report_row()}\n"
|
||||
|
||||
print(diff_report)
|
||||
write_file(gn_arg_dict['target_name'], rst_diff_report,
|
||||
gn_arg_dict['out_dir'])
|
||||
write_file(f"{gn_arg_dict['target_name']}.txt", diff_report,
|
||||
|
|
Loading…
Reference in New Issue
Block a user