Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
@@ -442,6 +442,8 @@ def help
--server run an instrumentation server on port 8080
--igv make sure IGV is running and dump Graal graphs after partial escape (implies --graal)
--full show all phases, not just up to the Truffle partial escape
--fg disable background compilation
--trace show compilation information on stdout
--jdebug run a JDWP debug server on #{JDEBUG_PORT}
--jexception[s] print java exceptions
--exec use exec rather than system
@@ -563,7 +565,8 @@ def run(*args)

{
'--asm' => '--graal',
'--igv' => '--graal'
'--igv' => '--graal',
'--trace' => '--graal',
}.each_pair do |arg, dep|
args.unshift dep if args.include?(arg)
end
@@ -627,6 +630,10 @@ def run(*args)
jruby_args << "-J-Dgraal.TruffleBackgroundCompilation=false"
end

if args.delete('--trace')
jruby_args << "-J-Dgraal.TraceTruffleCompilation=true"
end

if args.delete('--no-print-cmd')
args << { no_print_cmd: true }
end

0 comments on commit 12bfb90

Please sign in to comment.