Example #1
0
 def Run(args, parser):
     args.output_directory = None
     args.tool_prefix = None
     args.inputs = [args.before, args.after]
     args.query = ('Print(Diff(size_info1, size_info2), verbose=%s)' %
                   bool(args.all))
     console.Run(args, parser)
Example #2
0
 def Run(args, on_config_error):
     args.output_directory = None
     args.tool_prefix = None
     args.inputs = [args.before, args.after]
     args.query = '\n'.join([
         'd = Diff()',
         'sis = canned_queries.StaticInitializers(d.symbols)',
         'count = sis.CountsByDiffStatus()[models.DIFF_STATUS_ADDED]',
         'count += sis.CountsByDiffStatus()[models.DIFF_STATUS_REMOVED]',
         'if count > 0:',
         '  print("Static Initializers Diff:")',
         '  Print(sis, summarize=False)',
         '  print()',
         '  print("Full diff:")',
         'Print(d, verbose=%s)' % bool(args.all),
     ])
     console.Run(args, on_config_error)