Add event handler for each mutator am: a988f08000

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2432532

Change-Id: I977d86f07f9d68534e2f1714379e0882d74b8b48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Liz Kammer 2023-02-14 19:53:24 +00:00 committed by Automerger Merge Worker
commit 01fb1d4c41

View file

@ -2820,6 +2820,8 @@ func (c *Context) runMutators(ctx context.Context, config interface{}) (deps []s
pprof.Do(ctx, pprof.Labels("blueprint", "runMutators"), func(ctx context.Context) { pprof.Do(ctx, pprof.Labels("blueprint", "runMutators"), func(ctx context.Context) {
for _, mutator := range c.mutatorInfo { for _, mutator := range c.mutatorInfo {
pprof.Do(ctx, pprof.Labels("mutator", mutator.name), func(context.Context) { pprof.Do(ctx, pprof.Labels("mutator", mutator.name), func(context.Context) {
c.BeginEvent(mutator.name)
defer c.EndEvent(mutator.name)
var newDeps []string var newDeps []string
if mutator.topDownMutator != nil { if mutator.topDownMutator != nil {
newDeps, errs = c.runMutator(config, mutator, topDownMutator) newDeps, errs = c.runMutator(config, mutator, topDownMutator)