Add perfetto persistent tracing
If a property is set (by shell or by a device build file), perfetto will
keep a simple tracing configuration active all the time.
One test needs to be updated because it assumed that no session with
bugreport_score was running on device. If the property is enabled, that
might not be the case anymore.
Bug: 325622427
Change-Id: I7663f121b44c67ea8d8e23a88c6fb1b588100bfa
diff --git a/Android.bp b/Android.bp
index a991cc1..fd67581 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1278,6 +1278,9 @@
defaults: [
"perfetto_defaults",
],
+ required: [
+ "perfetto_persistent_cfg.pbtxt",
+ ],
}
// GN: //src/base:perfetto_base_default_platform
@@ -15574,3 +15577,10 @@
],
output_extension: "srcjar",
}
+
+prebuilt_etc {
+ name: "perfetto_persistent_cfg.pbtxt",
+ filename: "persistent_cfg.pbtxt",
+ sub_dir: "perfetto",
+ src: "persistent_cfg.pbtxt",
+}