Skip to content

Commit ad99e51

Browse files
committed
Workaround for --igv-full to avoid getting unrelated TruffleHostInlining graphs
1 parent 15c9930 commit ad99e51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tool/jt.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def help
781781
--reveal enable assertions
782782
--asm show assembly
783783
--igv dump select Graal graphs to graal_dumps/ (-Dgraal.Dump=Truffle:1)
784-
--igv-full dump all Graal graphs to graal_dumps/ (-Dgraal.Dump=Truffle:2)
784+
--igv-full dump all Graal graphs to graal_dumps/ (-Dgraal.Dump=Truffle:2,TruffleHostInlining:0)
785785
--igv-network dump to IGV directly through the network (-Dgraal.PrintGraph=Network)
786786
--infopoints show source location for each node in IGV
787787
--fg disable background compilation
@@ -1018,7 +1018,11 @@ def rebuild(*options)
10181018
vm_args << '--engine.TraceCompilation'
10191019
when '--igv', '--igv-full'
10201020
truffleruby_compiler!
1021-
vm_args << (arg == '--igv-full' ? '--vm.Dgraal.Dump=Truffle:2' : '--vm.Dgraal.Dump=Truffle:1')
1021+
if arg == '--igv-full'
1022+
vm_args << '--vm.Dgraal.Dump=Truffle:2,TruffleHostInlining:0'
1023+
else
1024+
vm_args << '--vm.Dgraal.Dump=Truffle:1'
1025+
end
10221026
vm_args << '--vm.Dgraal.PrintBackendCFG=false'
10231027
when '--igv-network'
10241028
truffleruby_compiler!

0 commit comments

Comments
 (0)