Prototype Optimization Coach for SpiderMonkey
- 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 the
run-*.jsfiles in the
examplessubdirectory for programs to try the coach on, or use one of the provided profile files directly. Note: when using
run-*.js, you need to run
exampledirectory.) 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