Skip to content

Commit 81f67a8

Browse files
author
Pavel Kosov
committed
[LNT] Fixed missing code_size metric
Fixed missing code_size metric in the final report Reviewed By: thopre Differential Revision: https://reviews.llvm.org/D109576
1 parent 003fda7 commit 81f67a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lnt/tests/test_suite.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@
7373
"""
7474

7575
CSV_REPORT_TEMPLATE = """\
76-
Program;CC;CC_Time;CC_Hash;Exec;Exec_Time;Score
76+
Program;CC;CC_Time;Code_Size;CC_Hash;Exec;Exec_Time;Score
7777
{%- for suite in suites -%}
7878
{%- for test in suite.tests %}
7979
{{ suite.name }}/{{ test.path }}/{{ test.name }};
8080
{%- if test.code == "NOEXE" -%}
81-
fail;*;*;
81+
fail;*;*;*;
8282
{%- else -%}
8383
pass;{{ test.metrics.compile_time if test.metrics }};\
84+
{{ test.metrics['size..text'] if test.metrics }};\
8485
{{ test.metrics.hash if test.metrics }};
8586
{%- endif -%}
8687
{%- if test.code == "FAIL" or test.code == "NOEXE" -%}
@@ -713,7 +714,7 @@ def _parse_lit_output(self, path, data, cmake_vars, only_test=False):
713714
'score': 'score',
714715
'hash': 'hash',
715716
'link_time': 'compile',
716-
'size.__text': 'code_size',
717+
'size..text': 'code_size',
717718
'mem_bytes': 'mem',
718719
'link_mem_bytes': 'mem'
719720
}
@@ -723,7 +724,7 @@ def _parse_lit_output(self, path, data, cmake_vars, only_test=False):
723724
'score': float,
724725
'hash': str,
725726
'link_time': float,
726-
'size.__text': float,
727+
'size..text': float,
727728
'mem_bytes': float,
728729
'link_mem_bytes': float
729730
}

0 commit comments

Comments
 (0)