- A patched version of SpiderMonkey (Warning: I force push to that branch.).
- Racket from recent git or nightly build.
- Build Firefox. The JIT coach gets its data from the Gecko profiler, so building only the JS shell is not enough.
- Gather profile data using
./js-profile <path-to-firefox-obj-dir> <program>, redirecting the output to a file. (Look at therun-*.jsfiles in theexamplessubdirectory for programs to try the coach on, or use one of the provided profile files directly. Note: when usingrun-*.js, you need to runjs-profilefrom theexampledirectory.) Running the profiler from the browser may work, but hasn't been tested. racket coach.rkt <profile-file>
To run benchmarks, see README.md in the benchmarks subdirectory.