aboutsummaryrefslogtreecommitdiffstats
path: root/ui/build/cleanbuild.go
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2018-12-12 16:01:49 -0800
committerNan Zhang <nanzhang@google.com>2019-01-04 15:54:01 -0800
commit17f2767724e7c7e8e2c4dcd595bd34b4de40f623 (patch)
tree2420a025fc229ed4f88a1b8b2a34a4c464cfe9b6 /ui/build/cleanbuild.go
parenta45e15e2d47c7527f17fbd92085e27cc39cde720 (diff)
downloadbuild_soong-17f2767724e7c7e8e2c4dcd595bd34b4de40f623.tar.gz
build_soong-17f2767724e7c7e8e2c4dcd595bd34b4de40f623.tar.bz2
build_soong-17f2767724e7c7e8e2c4dcd595bd34b4de40f623.zip
Generate build timing metrics to proto format file
Test: Dumped the text formated based metrics file to out dir, and checked the file. Bug: b/63815990 Change-Id: Iff476f72a0be74eb53b6b26ef468d11c0f24a404
Diffstat (limited to 'ui/build/cleanbuild.go')
-rw-r--r--ui/build/cleanbuild.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/build/cleanbuild.go b/ui/build/cleanbuild.go
index 4dee6382..c47f614d 100644
--- a/ui/build/cleanbuild.go
+++ b/ui/build/cleanbuild.go
@@ -20,6 +20,8 @@ import (
"os"
"path/filepath"
"strings"
+
+ "android/soong/ui/metrics"
)
func removeGlobs(ctx Context, globs ...string) {
@@ -158,7 +160,7 @@ func installCleanIfNecessary(ctx Context, config Config) {
return
}
- ctx.BeginTrace("installclean")
+ ctx.BeginTrace(metrics.PrimaryNinja, "installclean")
defer ctx.EndTrace()
prevConfig := strings.TrimPrefix(strings.TrimSuffix(string(prev), suffix), prefix)