Changeset 9bbbc8e
- Timestamp:
- Jun 26, 2020, 5:28:59 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/perf/view_halts.py
rb813f53 r9bbbc8e 12 12 parser.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') 13 13 args = parser.parse_args() 14 15 print("----- Processing Halts Output -----") 16 if not args.outfile: 17 print("ERROR : no output file specified and interactive mode not supported", file=sys.stderr) 18 sys.exit(1) 14 19 15 20 #-------------------------------------------------------------------------------- … … 91 96 #-------------------------------------------------------------------------------- 92 97 # setup plot 93 dots_per_inch = 200 098 dots_per_inch = 200 94 99 height_inches = 5 95 100 width_inches = 12 … … 121 126 # do the plot 122 127 plt.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) 128 print("saving figure image %s\n" % args.outfile.name) 129 plt.savefig(args.outfile.name)
Note: See TracChangeset
for help on using the changeset viewer.