Skip to content

Commit

Permalink
[Truffle] JT: add --trace and document it.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 23, 2016
1 parent 96d96a0 commit 12bfb90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tool/jt.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12bfb90

Please sign in to comment.