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
This commit is contained in:
Nan Zhang
2018-12-12 16:01:49 -08:00
parent a45e15e2d4
commit 17f2767724
18 changed files with 1021 additions and 20 deletions

View File

@@ -22,11 +22,12 @@ import (
"strings"
"time"
"android/soong/ui/metrics"
"android/soong/ui/status"
)
func runNinja(ctx Context, config Config) {
ctx.BeginTrace("ninja")
ctx.BeginTrace(metrics.PrimaryNinja, "ninja")
defer ctx.EndTrace()
fifo := filepath.Join(config.OutDir(), ".ninja_fifo")