beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.2k stars 114 forks source link

Add information about dumping of GrallVM IR graph in documentaiton #523

Open andrii0lomakin opened 3 months ago

andrii0lomakin commented 3 months ago

Currently TornadoVM does not dump IR Graph when system properties such as -Djdk.graal.Dump, -Djdk.graal.DumpOnError and so on are provided.

Usage of such properties will allow the use of an Ideal Graph Visualizer (IGV) for the development of different Phases and tracking of bugs.

andrii0lomakin commented 3 months ago

It is a very simple change to implement and quite a handy tool for me, so I will do that if there are no objections.

jjfumero commented 3 months ago

We have tornado --igv YourProgram. We use it quite frequently. You need to have IGV open in background, and it will dump all intermediate compilation phases in IGV.

andrii0lomakin commented 3 months ago

Yeah, found it. Thank you. Works like a charm. Did not find it there https://tornadovm.readthedocs.io/en/latest/flags.html . Let me keep this issue. I will add changes in the documentation.

andrii0lomakin commented 3 months ago

@jjfumero JFYI, I am using https://github.com/Shopify/seafoam , it is less feature complete but is more usable IMHO.