summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-05-04 15:19:23 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-05-04 15:19:23 +0000
commit3ab52714e0cf46582ea70a2493c7966c5750951b (patch)
treef91ec1596b9f72c81cff4e93090cd75603cc040f
parent717840fdfc0987802229ab82bf381e3a87355cf7 (diff)
parent73d491196bae765a211d88af5c4e48accc8c10cc (diff)
Merge "Measure 'ninja_hint' time"
-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.