Merge "Support instrumenting all PGO-enabled modules" am: ad4692d5af
am: 4bae924254
Change-Id: I675d5f528923a6bf8e243ea700469798176acac6
This commit is contained in:
committed by
android-build-merger
commit
6fc800403a
@@ -197,7 +197,7 @@ func (pgo *pgo) begin(ctx BaseModuleContext) {
|
||||
}
|
||||
|
||||
// This module should be instrumented if ANDROID_PGO_INSTRUMENT is set
|
||||
// and includes a benchmark listed for this module
|
||||
// and includes 'all', 'ALL' or a benchmark listed for this module.
|
||||
//
|
||||
// TODO Validate that each benchmark instruments at least one module
|
||||
pgo.Properties.ShouldProfileModule = false
|
||||
@@ -207,12 +207,16 @@ func (pgo *pgo) begin(ctx BaseModuleContext) {
|
||||
pgoBenchmarksMap[b] = true
|
||||
}
|
||||
|
||||
if pgoBenchmarksMap["all"] == true || pgoBenchmarksMap["ALL"] == true {
|
||||
pgo.Properties.ShouldProfileModule = true
|
||||
} else {
|
||||
for _, b := range pgo.Properties.Pgo.Benchmarks {
|
||||
if pgoBenchmarksMap[b] == true {
|
||||
pgo.Properties.ShouldProfileModule = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (pgo *pgo) deps(ctx BaseModuleContext, deps Deps) Deps {
|
||||
|
Reference in New Issue
Block a user