Skip to content

Commit d3f9e9e

Browse files
authored
Show output of the size command in size test scripts (#12018)
I find this more useful than raw file size, because it breaks down size by section of the binary and splits out debug info.
1 parent 1761d35 commit d3f9e9e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/build_optimized_size_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ test_cmake_size_test() {
4141

4242
echo 'ExecuTorch with no ops binary size, unstripped:'
4343
ls -al cmake-out/test/size_test
44+
size cmake-out/test/size_test
4445

4546
echo 'ExecuTorch with portable ops binary size, unstripped:'
4647
ls -al cmake-out/test/size_test_all_ops
48+
size cmake-out/test/size_test_all_ops
4749

4850
echo 'ExecuTorch with optimized ops binary size, unstripped:'
4951
ls -al cmake-out/test/size_test_all_optimized_ops
52+
size cmake-out/test/size_test_all_optimized_ops
5053
}
5154

5255
if [[ -z $PYTHON_EXECUTABLE ]]; then

test/build_size_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ test_cmake_size_test() {
4646

4747
echo 'ExecuTorch with no ops binary size, unstripped:'
4848
ls -al cmake-out/test/size_test
49+
size cmake-out/test/size_test
4950

5051
echo 'ExecuTorch with portable ops binary size, unstripped:'
5152
ls -al cmake-out/test/size_test_all_ops
53+
size cmake-out/test/size_test_all_ops
5254
}
5355

5456
if [[ -z $PYTHON_EXECUTABLE ]]; then

0 commit comments

Comments
 (0)