Espruino/scripts/profile.sh
2023-10-06 16:20:29 +01:00

12 lines
276 B
Bash
Executable File

#!/bin/bash
# Profiles an Espruino build to find areas that are slow
# First
# * Disable extra libs in LINUX.py
# * Specify an amount of variables (2000)
make clean;CFLAGS="-pg" LDFLAGS="-pg" make
bin/espruino benchmark/donut.js
gprof bin/espruino > gprof.txt
cat gprof.txt