Changeset 9bbbc8e


Ignore:
Timestamp:
Jun 26, 2020, 5:28:59 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bdce852
Parents:
b813f53
Message:

disabled interactive mode for view_halts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/perf/view_halts.py

    rb813f53 r9bbbc8e  
    1212parser.add_argument('-o', '--output', dest='outfile', type=argparse.FileType('w'), default=None, help='output file with any image format extension such as .png or .svg; if none specified then plt.show() will be used')
    1313args = parser.parse_args()
     14
     15print("----- Processing Halts Output -----")
     16if not args.outfile:
     17        print("ERROR : no output file specified and interactive mode not supported", file=sys.stderr)
     18        sys.exit(1)
    1419
    1520#--------------------------------------------------------------------------------
     
    9196#--------------------------------------------------------------------------------
    9297# setup plot
    93 dots_per_inch = 2000
     98dots_per_inch = 200
    9499height_inches = 5
    95100width_inches = 12
     
    121126# do the plot
    122127plt.tight_layout()
    123 if not args.outfile:
    124         plt.show()
    125 else:
    126         print("saving figure image %s\n" % args.outfile.name)
    127         plt.savefig(args.outfile.name)
     128print("saving figure image %s\n" % args.outfile.name)
     129plt.savefig(args.outfile.name)
Note: See TracChangeset for help on using the changeset viewer.