diff options
author | 2025-01-14 08:53:09 -0800 | |
---|---|---|
committer | 2025-01-14 08:53:09 -0800 | |
commit | 28c6d67b046e7ab2fc1f887bd396bffe3e793bda (patch) | |
tree | 6e89171d2096753f8c84767611cf803e21415f11 /ui/metrics/metrics.go | |
parent | 9eb3f2e1779a6c925c7109636133a47cdf4b5d99 (diff) |
Include TARGET_RELEASE in soong metrics
While we explicitly do not tell the build engine the value of
TARGET_RELEASE, we can include it in the build metrics.
Bug: None
Test: Manual
Change-Id: I92e4b21b8c93e1039d405d29eaebfa3b89a57103
Diffstat (limited to 'ui/metrics/metrics.go')
-rw-r--r-- | ui/metrics/metrics.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/metrics/metrics.go b/ui/metrics/metrics.go index 4a275a88f..8d29cfc2d 100644 --- a/ui/metrics/metrics.go +++ b/ui/metrics/metrics.go @@ -161,7 +161,7 @@ func (m *Metrics) ExpConfigFetcher(b *soong_metrics_proto.ExpConfigFetcher) { } // SetMetadataMetrics sets information about the build such as the target -// product, host architecture and out directory. +// product, host architecture and out directory. May be called multiple times. func (m *Metrics) SetMetadataMetrics(metadata map[string]string) { for k, v := range metadata { switch k { @@ -171,6 +171,8 @@ func (m *Metrics) SetMetadataMetrics(metadata map[string]string) { m.metrics.PlatformVersionCodename = proto.String(v) case "TARGET_PRODUCT": m.metrics.TargetProduct = proto.String(v) + case "TARGET_RELEASE": + m.metrics.TargetRelease = proto.String(v) case "TARGET_BUILD_VARIANT": switch v { case "user": |