- Loading...
...
Nashorn supports callsite tracing and profile jjs (jjs tool) options via command line options -tcs and -pcs. You can pass these to jjs tool or set these options via "nashorn.args" System property. But these options produce trace, profile output for all scripts that are run. To avoid having to look at too many much trace outputs output (or too big NashornProfile.txt file to scan!), nashorn allows per script or per function tracing, profiling via user directives.
You can include nashorn specific user directives ( directive prologues ) at the start of a source script or at the start of a script function as shown below:
...