Skip to content

How to find out if Truffle/Graal permanently deoptimizes code? #2789

Answered by alina-yur
ghost asked this question in General
Discussion options

You must be logged in to vote

Hi, this question was discussed on GraalVM's Slack: https://graalvm.slack.com/archives/CNQSB2DHD/p1598366789026200

I will copy @chumer's answer:

Truffle only gives up on compilation if the graph gets too big or it failed with an internal error. That is shown when --engine.TraceCompilation is enabled. For internal errors you can use --engine.CompilationFailureAction=Throw to propagate them to the interpreter thread. Does you language support ROOT instrumentation? Then you can use the --cpusampler tool. See https://www.graalvm.org/tools/profiling/ It shows the amount of time spent in optimized code.

Besides you can have a look at: https://github.com/oracle/graal/blob/master/truffle/docs/Opt…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomaswue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant