Add lazy startup producer class to traced.
This is sufficiently different to the heapprofd system properties to warrant
a parallel implementation.
heapprofd requires a global property that signals whether to profile at all or
whether to profile all processes.
Change-Id: I5ff5e317b9cd99310b145b5501bff3f4afccb56d
Bug: 126724929
diff --git a/heapprofd.rc b/heapprofd.rc
index f1869bf..8868751 100644
--- a/heapprofd.rc
+++ b/heapprofd.rc
@@ -24,5 +24,8 @@
on property:persist.heapprofd.enable=1
start heapprofd
-on property:persist.heapprofd.enable=0
+on property:traced.lazy.heapprofd=1
+ start heapprofd
+
+on property:persist.heapprofd.enable=0 && property:traced.lazy.heapprofd=0
stop heapprofd