Nashorn 分析器输出格式 [英] Nashorn profiler output format

查看:69
本文介绍了Nashorn 分析器输出格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Nashorn java 脚本引擎有内置的分析器,可以这样调用:

Nashorn java script engine has built-in profiler which can be invoked like this:

jjs -pcs profiled_script.js.

此分析器生成一个名为 NashornProfile.txt 的文件.这是此文件中的示例行:

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?

推荐答案

格式为:

  • 连续行索引
  • 函数名称
  • 在函数内部花费的总时间
  • 函数的命中次数

这些值是制表符分隔的.信息取自 Nashorn 源代码,JDK 8 GA(nashorn/src/jdk/nashorn/internal/runtime/linker/LinkerCallSite.java:304,ProfileDumper 类).

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

这篇关于Nashorn 分析器输出格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆