Store the changed_inputs field in build.trace.

Bug: 323021988
Test: Manual tests
Change-Id: If5e060d13f7935ced28d556ab248f2b1e6bdb61d
This commit is contained in:
Yu Liu
2024-03-05 01:12:19 +00:00
parent 972917d794
commit a58467ae9a
5 changed files with 74 additions and 51 deletions

View File

@@ -15,9 +15,10 @@
package tracer
import (
"android/soong/ui/status"
"strings"
"time"
"android/soong/ui/status"
)
func (t *tracerImpl) StatusTracer() status.StatusOutput {
@@ -110,6 +111,7 @@ func (s *statusOutput) FinishAction(result status.ActionResult, counts status.Co
VoluntaryContextSwitches: result.Stats.VoluntaryContextSwitches,
InvoluntaryContextSwitches: result.Stats.InvoluntaryContextSwitches,
Tags: s.parseTags(result.Stats.Tags),
ChangedInputs: result.Action.ChangedInputs,
},
})
}
@@ -125,6 +127,7 @@ type statsArg struct {
VoluntaryContextSwitches uint64 `json:"voluntary_context_switches"`
InvoluntaryContextSwitches uint64 `json:"involuntary_context_switches"`
Tags map[string]string `json:"tags"`
ChangedInputs []string `json:"changed_inputs"`
}
func (s *statusOutput) Flush() {}