Replace writepid with task_profiles command for cgroup migration

writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I990015c5b1dcb66855f036ca0c74508143f3b19a
diff --git a/traced_perf.rc b/traced_perf.rc
index 692977c..1835466 100644
--- a/traced_perf.rc
+++ b/traced_perf.rc
@@ -27,7 +27,7 @@
     user nobody
     group nobody readproc
     capabilities KILL DAC_READ_SEARCH
-    writepid /dev/cpuset/foreground/tasks
+    task_profiles ProcessCapacityHigh
 
 # Daemon run state:
 # * initially off