From d125440affe3bf6eeeadbb10181c23e78cce6836 Mon Sep 17 00:00:00 2001 From: Jason Wu Date: Wed, 1 Mar 2023 20:26:30 -0500 Subject: [PATCH] Upload soong_build_metrics when user builds Test: m nothing and check the events in database Bug: 269751664 Change-Id: Ic07a6e1797b11f5413d7ecd78969dec64e9eeac9 --- cmd/soong_ui/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/soong_ui/main.go b/cmd/soong_ui/main.go index fd718c29f..ae026ba26 100644 --- a/cmd/soong_ui/main.go +++ b/cmd/soong_ui/main.go @@ -200,6 +200,7 @@ func main() { rbeMetricsFile := filepath.Join(logsDir, c.logsPrefix+"rbe_metrics.pb") bp2buildMetricsFile := filepath.Join(logsDir, c.logsPrefix+"bp2build_metrics.pb") bazelMetricsFile := filepath.Join(logsDir, c.logsPrefix+"bazel_metrics.pb") + soongBuildMetricsFile := filepath.Join(logsDir, c.logsPrefix+"soong_build_metrics.pb") //the profile file generated by Bazel" bazelProfileFile := filepath.Join(logsDir, c.logsPrefix+"analyzed_bazel_profile.txt") @@ -209,6 +210,7 @@ func main() { bp2buildMetricsFile, // high level metrics related to bp2build. soongMetricsFile, // high level metrics related to this build system. bazelMetricsFile, // high level metrics related to bazel execution + soongBuildMetricsFile, // high level metrics related to soong build(except bp2build) config.BazelMetricsDir(), // directory that contains a set of bazel metrics. }