summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeongik Cha <jeongik@google.com> 2023-05-04 18:16:11 +0900
committer Jeongik Cha <jeongik@google.com> 2023-05-04 18:16:11 +0900
commit73d491196bae765a211d88af5c4e48accc8c10cc (patch)
treea33c4b28bd1d4494eaeda4dbf527e0f6c83934a4
parent291cc5f9d9b4873a8532dac31dd719bb0c1924c0 (diff)
Measure 'ninja_hint' time
Bug: 273282046 Test: m nothing and check out/soong_build_metrics.pb Change-Id: I6440c3279b141c1f057145b668f8b96c45eaa75d
-rw-r--r--cmd/soong_build/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index 2723dfd12..96f65a44b 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -257,6 +257,8 @@ func apiBuildFileExcludes(ctx *android.Context) []string {
}
func writeNinjaHint(ctx *android.Context) error {
+ ctx.BeginEvent("ninja_hint")
+ defer ctx.EndEvent("ninja_hint")
// The current predictor focuses on reducing false negatives.
// If there are too many false positives (e.g., most modules are marked as positive),
// real long-running jobs cannot run early.