Skip to contentSkip to conversation

scripts/bloat-o-meter: Rename file arguments to match output

PATCH Applied Valtteri Koskivuori 1 participant 1 message Feb 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/bloat-o-meter: Rename file arguments to match output

The output of bloat-o-meter already uses the words 'old' and 'new' for symbol size in the table header, so reflect that in the corresponding argument names.

---
 scripts/bloat-o-meter | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/bloat-o-meter +3 -3
index 888ce286a351..e16e900f0176 100755
@@ -18,8 +18,8 @@ group.add_argument('-c', help='categorize output based on symbol type', action='
 group.add_argument('-d', help='Show delta of Data Section', action='store_true')
 group.add_argument('-t', help='Show delta of text Section', action='store_true')
 parser.add_argument('-p', dest='prefix', help='Arch prefix for the tool being used. Useful in cross build scenarios')
-parser.add_argument('file1', help='First file to compare')
-parser.add_argument('file2', help='Second file to compare')
+parser.add_argument('file_old', help='First file to compare')
+parser.add_argument('file_new', help='Second file to compare')
 
 args = parser.parse_args()
 
@@ -85,7 +85,7 @@ def calc(oldfile, newfile, format):
 
 def print_result(symboltype, symbolformat):
     grow, shrink, add, remove, up, down, delta, old, new, otot, ntot = \
-    calc(args.file1, args.file2, symbolformat)
+    calc(args.file_old, args.file_new, symbolformat)
 
     print("add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \
           (add, remove, grow, shrink, up, -down, up-down))
Signature · 1 line
2.52.0