#!/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