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:
commit
01fb1d4c41
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
for _, mutator := range c.mutatorInfo {
|
||||
pprof.Do(ctx, pprof.Labels("mutator", mutator.name), func(context.Context) {
|
||||
c.BeginEvent(mutator.name)
|
||||
defer c.EndEvent(mutator.name)
|
||||
var newDeps []string
|
||||
if mutator.topDownMutator != nil {
|
||||
newDeps, errs = c.runMutator(config, mutator, topDownMutator)
|
||||
|
|
Loading…
Reference in a new issue