summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt-viewer/opt-stats.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert Autogenerate the shebang lines for tools/opt-viewerReid Kleckner2019-08-271-0/+78
| | | | | | | | | | This reverts r369486 (git commit 8d18384809957cc923752e10a86adab129e3df48) The opt-viewer tests don't pass after this change, and fixing them isn't trivial. opt-viewer.py imports optmap, which requires adjusting pythonpath, which is more work than I'm willing to do to fix forward. llvm-svn: 370095
* Autogenerate the shebang lines for tools/opt-viewerChris Bieneman2019-08-211-78/+0
| | | | | | | | | | | | | | | | | | | | | Summary: Since these files depend on the built python modules, they need to use the right python binary to run them. So use configure_file to set the right shebang line. Patch By: cbiesinger (Christian Biesinger) Reviewers: chandlerc, beanz, anemet Reviewed By: anemet Subscribers: compnerd, JDevlieghere, mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65983 llvm-svn: 369486
* Python compat - no explicit reference to Python versionSerge Guelton2019-01-031-1/+1
| | | | | | | | Update documentation and shebang. Differential Revision: https://reviews.llvm.org/D56252 llvm-svn: 350327
* Fix some opt-viewer test issues and disable on Windows.Zachary Turner2018-01-051-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D41784 llvm-svn: 321905
* Make find_opt_files varargAdam Nemet2017-09-291-1/+1
| | | | | | | This is slightly less verbose for the common case of a single build directory and more intuitive when using this API directly from the interpreter. llvm-svn: 314491
* [opt-viewer] Print allocated memory per remark in opt-stats.pyAdam Nemet2017-07-191-1/+13
| | | | | | | If heapy is installed print the "average" in-memory remark size. This is estimated by dividing the total heap size by the number of unique remarks. llvm-svn: 308537
* [opt-viewer] Accept directories that are searched for opt.yaml filesAdam Nemet2017-07-171-2/+12
| | | | | | | | | | | | This allows to pass the build directory where all the opt.yaml files are rather than find | xargs which may invoke opt-viewer multiple times producing incomplete html output. The patch generalizes the same functionality from opt-diff. Differential Revision: https://reviews.llvm.org/D35491 llvm-svn: 308200
* [opt-viewer] Move under tools, install itAdam Nemet2017-07-061-0/+56
We weren't installing opt-viewer and co before, this fixes the omission. I am also moving the tools from utils/ to tools/. I believe that this is more appropriate since these tools have matured greatly in the past year through contributions by multiple people (thanks!) so they are ready to become external tools. The tools are installed under <install>/share/opt-viewer/. I am *not* adding the llvm- prefix. If people feel strongly about adding that, this is probably a good time since the new location will require some mental adjustment anyway. Fixes PR33521 Differential Revision: https://reviews.llvm.org/D35048 llvm-svn: 307285
OpenPOWER on IntegriCloud