Skip to content

Commit

Permalink
Arm backend: Track target flash size metrics (#5342)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zingo authored and facebook-github-bot committed Sep 23, 2024
1 parent b2517d6 commit e12b37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/arm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ function build_executorch_runner() {
cmake --build cmake-out -- -j"$((n - 5))" arm_executor_runner
echo "[${FUNCNAME[0]}] Generated baremetal elf file:"
find cmake-out -name "arm_executor_runner"
echo "executable_text: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $1}') bytes"
echo "executable_data: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $2}') bytes"
echo "executable_bss: $(find -name arm_executor_runner -exec size {} \; | grep -v filename | awk '{print $3}') bytes"
echo "pte_data_size: $(stat -c%s ${pte}) bytes"
}

# Execute the executor_runner on FVP Simulator
Expand Down

0 comments on commit e12b37e

Please sign in to comment.