summaryrefslogtreecommitdiff
path: root/ui/status/ninja.go
diff options
context:
space:
mode:
author Dan Albert <danalbert@google.com> 2023-06-01 23:09:38 +0000
committer Dan Albert <danalbert@google.com> 2023-06-21 20:17:57 +0000
commite82234ed50f424c1d9c880f67a2784a0c160aa91 (patch)
tree8fd9c2195e6bf502a22074af66cd540eee083c15 /ui/status/ninja.go
parent8bd06008dc79483557e9c8a27e73c7c5e8ae7873 (diff)
Include tags in trace data.
The tags item in the trace data is arbitrary metadata added to `build` steps by Soong (and my Kati via `.KATI_TAGS` target-specific variables). Include this in the perfetto trace so we can analyze it. Bug: http://b/259130368 Test: End to end test tracing cp time in dist targets Change-Id: I85d33f579dc40dbae616b24cd4cb150d86262470
Diffstat (limited to 'ui/status/ninja.go')
-rw-r--r--ui/status/ninja.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/status/ninja.go b/ui/status/ninja.go
index fc0e21a05..fb760ac8f 100644
--- a/ui/status/ninja.go
+++ b/ui/status/ninja.go
@@ -174,6 +174,7 @@ func (n *NinjaReader) run() {
IOOutputKB: msg.EdgeFinished.GetIoOutputKb(),
VoluntaryContextSwitches: msg.EdgeFinished.GetVoluntaryContextSwitches(),
InvoluntaryContextSwitches: msg.EdgeFinished.GetInvoluntaryContextSwitches(),
+ Tags: msg.EdgeFinished.GetTags(),
},
})
}