From a58467ae9a137b8642b9c67da6c563440b69d746 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Tue, 5 Mar 2024 01:12:19 +0000 Subject: Store the changed_inputs field in build.trace. Bug: 323021988 Test: Manual tests Change-Id: If5e060d13f7935ced28d556ab248f2b1e6bdb61d --- ui/tracer/status.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/tracer') diff --git a/ui/tracer/status.go b/ui/tracer/status.go index f973613d4..8acf561c9 100644 --- a/ui/tracer/status.go +++ b/ui/tracer/status.go @@ -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() {} -- cgit v1.2.3-59-g8ed1b