PGO for libbinder
This improves app launch performance by 1.70%.
Test: presubmit
Bug: 181934413
Bug: 175205560
Change-Id: Ic9be75234a5fafa9e9fa890006b20f8c862e6799
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 44fda79..776d594 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -218,6 +218,11 @@
"performance*",
"portability*",
],
+
+ pgo: {
+ sampling: true,
+ profile_file: "libbinder/libbinder.profdata",
+ },
}
// AIDL interface between libbinder and framework.jar