2

When using JProfiler 9.1 to profile a JVM (1.8.0_65-b17 on Mac) running Javascript code through Nashorn, it turns out that calls into javax.script.ScriptEngine.eval() cannot be further profiled:

JProfiler Call Tree on Nashorn JS execution

The nashorn-dev mailing list seems to say that profiling via JVMTI should be possible, though: Nashorn and JVMTI

Does anybody per chance have a hint on what could be the problem here?

jfrantzius
  • 623
  • 7
  • 16

1 Answers1

2

OK, stupid me. Just in case it may be useful to others: JProfiler's default settings for filtering Java packages did effectively exclude those that I was interested in.

Using these filter settings:

Filter settings

Allows to take a deep peek into the Nashorn:

Profiling Nashorn call tree

jfrantzius
  • 623
  • 7
  • 16