Loading cc/pgo.go +9 −5 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -207,6 +207,9 @@ 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 Loading @@ -214,6 +217,7 @@ func (pgo *pgo) begin(ctx BaseModuleContext) { } } } } func (pgo *pgo) deps(ctx BaseModuleContext, deps Deps) Deps { if pgo.Properties.ShouldProfileModule { Loading Loading
cc/pgo.go +9 −5 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -207,6 +207,9 @@ 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 Loading @@ -214,6 +217,7 @@ func (pgo *pgo) begin(ctx BaseModuleContext) { } } } } func (pgo *pgo) deps(ctx BaseModuleContext, deps Deps) Deps { if pgo.Properties.ShouldProfileModule { Loading