File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,9 @@ class TestCaseSummary:
131
131
undelegated_op_counts : Counter | None = None
132
132
""" The number of undelegated occurances of each operator in the graph. """
133
133
134
+ pte_size_bytes : int | None = None
135
+ """ The size of the PTE file in bytes. """
136
+
134
137
135
138
class TestSessionState :
136
139
test_case_summaries : list [TestCaseSummary ]
@@ -302,6 +305,7 @@ def generate_csv_report(summary: RunSummary, output: TextIO):
302
305
"Undelegated Nodes" ,
303
306
"Delegated Ops" ,
304
307
"Undelegated Ops" ,
308
+ "PTE Size (Kb)" ,
305
309
]
306
310
)
307
311
@@ -336,5 +340,8 @@ def generate_csv_report(summary: RunSummary, output: TextIO):
336
340
row ["Undelegated Nodes" ] = _sum_op_counts (record .undelegated_op_counts )
337
341
row ["Delegated Ops" ] = _serialize_op_counts (record .delegated_op_counts )
338
342
row ["Undelegated Ops" ] = _serialize_op_counts (record .undelegated_op_counts )
343
+ row ["PTE Size (Kb)" ] = (
344
+ record .pte_size_bytes / 1000.0 if record .pte_size_bytes else ""
345
+ )
339
346
340
347
writer .writerow (row )
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ def build_result(
129
129
if is_delegated :
130
130
try :
131
131
tester .to_executorch ().serialize ()
132
+ extra_stats ["pte_size_bytes" ] = len (tester .get_artifact ())
132
133
except Exception as e :
133
134
# We could introduce a result value for this, but I'm not sure it's necessary.
134
135
# We can do this if we ever see to_executorch() or serialize() fail due a backend issue.
You can’t perform that action at this time.
0 commit comments