Skip to content

Commit e12b37e

Browse files
zingofacebook-github-bot
authored andcommitted
Arm backend: Track target flash size metrics (#5342)
Summary: This logs the metrics from the size command when building with run.sh Pull Request resolved: #5342 Reviewed By: manuelcandales Differential Revision: D62874679 Pulled By: digantdesai fbshipit-source-id: f69bfa12c48101e540e684a590f78b546903cb42
1 parent b2517d6 commit e12b37e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/arm/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ function build_executorch_runner() {
147147
cmake --build cmake-out -- -j"$((n - 5))" arm_executor_runner
148148
echo "[${FUNCNAME[0]}] Generated baremetal elf file:"
149149
find cmake-out -name "arm_executor_runner"
150+
echo "executable_text: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $1}') bytes"
151+
echo "executable_data: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $2}') bytes"
152+
echo "executable_bss: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $3}') bytes"
153+
echo "pte_data_size: $(stat -c%s ${pte}) bytes"
150154
}
151155

152156
# Execute the executor_runner on FVP Simulator

0 commit comments

Comments
 (0)