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
diff --git a/perfetto.rc b/perfetto.rc
index 23abaf2..8c795ad 100644
--- a/perfetto.rc
+++ b/perfetto.rc
@@ -39,6 +39,12 @@
 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.