The main change in this PR is to add an argument to compile.native that turns on profiling around the main entry point. This means that the whole program gets profiled, printing out summaries every 60s and on program exit.
This doesn't allow you to profile particular sections of code, but it's easy to toggle when you're creating the program.
I also included the implementation of sqrt which Mitchell noticed was missing.
The main change in this PR is to add an argument to
compile.native
that turns on profiling around the main entry point. This means that the whole program gets profiled, printing out summaries every 60s and on program exit.This doesn't allow you to profile particular sections of code, but it's easy to toggle when you're creating the program.
I also included the implementation of
sqrt
which Mitchell noticed was missing.