commit | aa3acaecad43e4e497f70a0504bf70b733581d6e | [log] [tgz] |
---|---|---|
author | Tiancong Wang <tcwang@google.com> | Tue May 26 15:04:15 2020 -0700 |
committer | Tiancong Wang <tcwang@google.com> | Wed May 27 17:39:17 2020 +0000 |
tree | bdeb684d8f467ecc208524f9e2b15f355b260f4f | |
parent | 52f8ed317b04a65e7d7e76262b92e8f4b1e6838a [diff] |
afdo_redaction: Implement a script to remove cold functions in AFDO profiles. Implement a script to keep removing cold functions in AFDO profiles until the target is met. The result will be a smaller profile that can possibly result in smaller binary size. Also support passing the source CWP and benchmark profiles to analyze how many functions are trimmed from the source profiles, etc. The script will be used in experimental AFDO pipeline first, no impact on prod profiles so far. BUG=chromium:1062014 TEST=unittest pass Change-Id: I651ce3f47ee8061557e3f1cdc83fd770e1b2b9ad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2216445 Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Tiancong Wang <tcwang@google.com> Tested-by: Tiancong Wang <tcwang@google.com>
toolchain-utils
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.