aosp12/external/toolchain-utils/bestflags
hcl 7be3fd486c init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
..
examples/omnetpp init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
README.md init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
example_algorithms.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
flags.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
flags_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
flags_util.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
generation.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
generation_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
genetic_algorithm.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
hill_climb_best_neighbor.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
iterative_elimination.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
mock_task.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
pipeline_process.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
pipeline_process_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
pipeline_worker.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
pipeline_worker_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
steering.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
steering_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
task.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
task_test.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00
testing_batch.py init from android-12.1.0_r8 2023-01-09 17:11:35 +08:00

README.md

bestflags

There is a vast set of compiler flags that can be used to build Chrome for ChromeOS. This option space has not been explored before. This directory provides an infrastructure to build Chrome with certain flag combinations, test it, gather results and prepare a fresh batch of flags to repeat the process. The infrastructure supports plug-in modules that implement algorithms for searching in the N-Dimensional space of compiler flag combinations.

Currently, three different algorithms are built, namely genetic algorithm, hill climbing and negative flag iterative elimination. The module testing_batch.py contains the testing of these algorithms.

To run the script, type in python testing_batch.py.

For further information about the project, please refer to the design document at:

https://docs.google.com/a/google.com/document/d/19iE9rhszTWjISBpKJ3qK8uBCoUjs0o4etWDRkyEeUOw/

There is also a presentation slide available at:

https://docs.google.com/a/google.com/presentation/d/13rS9jALXffbP48YsF0-bsqovrVBfgzEud4e-XpavOdA/edit#slide=id.gf880fcd4_180