Optimizing Truffle interpreter performance with launcher options
Truffle defines a design and specification for providing various launcher options that can be used to diagnose, debug, and optimize the interpreter. All the guest language developers support these launcher options. In this section, we will cover some of these important launcher options:
- Help: All language launchers implement the
–help
command-line argument.--help:expert
provides the expert options. For the language implementer's internal options, we can use--help:internal
. - Analysis and profiling options: Truffle provides command-line options to generate the Graal dumps that can be analyzed using the Ideal Graph Visualizer. Please refer to the Installing the Ideal Graph Visualizer and Graal intermediate representation sections in Chapter 4, Graal Just-In-Time Compiler, for more details on how to use Graal graphs for analysis and diagnosis. Graal graphs can be generated by passing the
--vm.Dgraal...