Skip to content

Commit

Permalink
[Truffle] JT: Only dump interesting phases in IGV by default.
Browse files Browse the repository at this point in the history
* The latest PartialEscape is usually the best.
* Don't produce *.cfg files.
* Add --fg to disable bg compilation.
  • Loading branch information
eregon committed Oct 18, 2016
1 parent 2334b3f commit 44847d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tool/jt.rb
Expand Up @@ -615,10 +615,15 @@ def run(*args)
warn "warning: --igv might not work on master - if it does not, use truffle-head instead which builds against latest graal" if Utilities.git_branch == 'master'
Utilities.ensure_igv_running
if args.delete('--full')
jruby_args += %w[-J-G:Dump=Truffle]
jruby_args << "-J-Dgraal.Dump=Truffle"
else
jruby_args += %w[-J-G:Dump=TrufflePartialEscape]
jruby_args << "-J-Dgraal.Dump=TruffleTree,PartialEscape"
end
jruby_args << "-J-Dgraal.PrintBackendCFG=false"
end

if args.delete('--fg')
jruby_args << "-J-Dgraal.TruffleBackgroundCompilation=false"
end

if args.delete('--no-print-cmd')
Expand Down

0 comments on commit 44847d5

Please sign in to comment.