Consistent handling of by/field arguments for plot.py and summary.py

Now both scripts also fallback to guessing what fields to use based on
what fields can be converted to integers. This is more falible, and
doesn't work for tests/benchmarks, but in those cases explicit fields
can be used (which is what would be needed without guessing anyways).
This commit is contained in:
Christopher Haster
2022-09-23 00:27:09 -05:00
parent 7591d9cf74
commit fb58148df2
3 changed files with 209 additions and 206 deletions
+2 -1
View File
@@ -170,10 +170,11 @@ coverage: $(GCDA)
.PHONY: summary sizes
summary sizes: $(BUILDDIR)lfs.csv
$(strip ./scripts/summary.py -Y $^ \
-f code=code_size,$\
-fcode=code_size,$\
data=data_size,$\
stack=stack_limit,$\
struct=struct_size \
--max=stack \
$(SUMMARYFLAGS))