code_size_compare: print 'None' if comparing size for a new file

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-07-24 16:56:46 +08:00
parent 69262fc087
commit f2cd717952

View file

@ -647,9 +647,11 @@ class CodeSizeGeneratorWithSize(CodeSizeGenerator):
"{:.2%}".format(text_vari[3]) + ","
+ "{:.2%}".format(data_vari[3])))
else:
output.write("{:<30} {:<18}\n"
.format(fname,
str(text_vari[0]) + "," + str(data_vari[0])))
output.write(
format_string
.format(fname,
str(text_vari[0]) + "," + str(data_vari[0]),
'None', 'None', 'None'))
class CodeSizeComparison: