Introduce afdo

A new configuration rule for sampling PGO. This differs from the
original pgo.go rule in the following ways:
 * Automatic propagation to static dependencies
 * Simpler configuration (just put `afdo: true` to optimsation targets)

http://go/android-afdo

Test: build
Bug: 79161490
Change-Id: Ie194824cd523bca19e10ced41d2078fc598f13b3
This commit is contained in:
Yi Kong
2021-12-09 18:06:29 +08:00
parent 55f84a74c5
commit eb8efc902d
5 changed files with 217 additions and 2 deletions

View File

@@ -1245,6 +1245,10 @@ func (c *deviceConfig) NativeCoverageEnabledForPath(path string) bool {
return coverage
}
func (c *deviceConfig) AfdoAdditionalProfileDirs() []string {
return c.config.productVariables.AfdoAdditionalProfileDirs
}
func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
return c.config.productVariables.PgoAdditionalProfileDirs
}