| commit | 52a5193518a5e6d912e001fa995d260748b7142b | [log] [tgz] |
|---|---|---|
| author | George Burgess IV <gbiv@google.com> | Thu Sep 25 07:46:58 2025 -0600 |
| committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 25 12:55:28 2025 -0700 |
| tree | cfc5cb9b3a2c1166615cc25a9f7640298b55ece9 | |
| parent | baddbbd4df7f3e7933abbc2c76a1c0415463af0d [diff] |
afdo_tools: use `Random` instances in afdo_prof_analysis Reasoning about the global `random.seed`'s state is difficult. Instead, use easy-to-trace `random.Random` instances that are clearly and deterministically seeded. While I'm here, add a few type annotations where doing so is easy. BUG=b:447149857 TEST=Unittests Change-Id: I58a0e04583ae7dbc296beb25989173e78a26f604 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/6982910 Tested-by: George Burgess <gbiv@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> Reviewed-by: Jordan Abrahams-Whitehead <ajordanr@google.com>
toolchain-utilsVarious utilities used by the ChromeOS 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.