Nashorn profiler output format

狂风中的少年 提交于 2019-12-13 03:35:39

问题


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 example line from this file:

0       dyn:getProp|getElem|getMethod:Object    764015  1

What is the format of this file and what is the meaning of each column?


回答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).



来源:https://stackoverflow.com/questions/26013745/nashorn-profiler-output-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!