Espruino/scripts/profile.sh
Gordon Williams 1c98f3b0e6 script
2021-08-16 14:59:55 +01:00

12 lines
270 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
./espruino benchmark/donut.js
gprof espruino > gprof.txt
cat gprof.txt