aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLalit Maganti <lalitm@google.com>2018-05-23 19:18:55 +0100
committerLalit Maganti <lalitm@google.com>2018-05-23 18:35:22 +0000
commitdabc529df408840d69c4aefbc81ba63303fb5139 (patch)
tree177920295ee5045de5beb260f00a2632d9429a46
parent870dd82f0a1190b1890ca3e592f68bc5bbece627 (diff)
downloadperfetto-dabc529df408840d69c4aefbc81ba63303fb5139.tar.gz
perfetto: update init rc file to account for atrace running
If atrace is running, we want to defer to it and stop any trace which may be running to allow atrace to do its work. Bug: 79998861 Test: manual testing of property flips Change-Id: Ie07ea4ac2abddf761daccfe441bb01bb278f314e
-rw-r--r--perfetto.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/perfetto.rc b/perfetto.rc
index 23abaf25e..8c795ad3b 100644
--- a/perfetto.rc
+++ b/perfetto.rc
@@ -39,6 +39,12 @@ on property:sys.traced.enable_override=1
on property:sys.traced.enable_override=0
setprop persist.traced.enable 0
+on property:debug.atrace.user_initiated=1
+ stop traced_probes
+
+on property:persist.traced.enable=1 && property:debug.atrace.user_initiated=""
+ start traced_probes
+
on property:persist.traced.enable=1
# Trace files need to be:
# - Written by either uid:shell or uid:statsd.