Skip to content

Commit

Permalink
Added -io option to filter IGV display
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Dec 6, 2016
1 parent 84d1958 commit 09d15cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions som
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ explore.add_argument('-i', '--igv', help='dump compilation details to IGV',
dest='igv', action='store_true', default=False)
explore.add_argument('-if', '--igv-to-file', help='dump compilation details to file to be loaded by IGV',
dest='igv_to_file', action='store_true', default=False)
explore.add_argument('-io', '--igv-only', help='only dump named method, use of * allowed. Uses Invokable.toString()',
dest='only_igv', default=None)
explore.add_argument('-l', '--low-level', help='enable low-level optimization output',
dest='low_level', action='store_true', default=False)
explore.add_argument('-ti', '--trace-invalidation', help='trace assumption invalidation and transfers to interpreter',
Expand Down Expand Up @@ -184,6 +186,9 @@ if sys.argv[0].endswith('debug'):
args.perf_warnings = True
args.background_compilation = False

if args.only_igv:
args.igv = True

if not args.interpreter:
# Make sure everything gets compiled
flags += ['-Dgraal.TruffleTimeThreshold=10000000']
Expand All @@ -193,6 +198,8 @@ if args.debug:
'-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000']
if not args.interpreter and (args.igv or args.igv_to_file):
flags += ['-Dgraal.Dump=Truffle,TruffleTree:2']
if not args.interpreter and args.only_igv:
flags += ['-Dgraal.MethodFilter=' + args.only_igv]
if not args.interpreter and args.igv_to_file:
flags += ['-Dgraal.PrintIdealGraphFile=true']
if args.low_level:
Expand Down

0 comments on commit 09d15cc

Please sign in to comment.