[PATCH] D34735: [opt-viewer] Add progress indicators (PR33522)

Brian Gesiak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 20:09:37 PDT 2017


modocache created this revision.
Herald added a subscriber: fhahn.

Provide feedback to users of opt-diff.py, opt-stats.py, and opt-viewer.py,
on how many YAML files have finished being processed, and how many HTML
files have been generated. This feedback is particularly helpful for
opt-viewer.py, which may take a long time to complete when given many
large YAML files as input.

The progress indicators use simple output such as the following:

  Reading YAML files...
      9 of 1197

Test plan:
Run `utils/opt-viewer/opt-*.py` on a CentOS and macOS machine, using
Python 3.4 and Python 2.7 respectively, and ensure the output is
formatted well on both.


https://reviews.llvm.org/D34735

Files:
  utils/opt-viewer/opt-diff.py
  utils/opt-viewer/opt-stats.py
  utils/opt-viewer/opt-viewer.py
  utils/opt-viewer/optpmap.py
  utils/opt-viewer/optrecord.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34735.104345.patch
Type: text/x-patch
Size: 8914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170628/31a12ec7/attachment.bin>


More information about the llvm-commits mailing list