Skip to content Skip to sidebar Skip to footer

Nashorn Profiler Output Format

Nashorn java script engine has built-in profiler which can be invoked like this: jjs -pcs profiled_script.js. This profiler produces a file named NashornProfile.txt. Here is an e

Solution 1:

The format is:

  • Sequential line index
  • Function name
  • Total time spend inside function
  • Hit count for the function

This values are tab separated. Information taken from Nashorn source, JDK 8 GA (nashorn/src/jdk/nashorn/internal/runtime/linker/LinkerCallSite.java:304, ProfileDumper class).


Post a Comment for "Nashorn Profiler Output Format"