Clone wait for process to finish

Currently, we try to continue processing the result immediately after cloning, but the trace is not actually ready at this point. Wait for the process to complete so that we know the trace is fully written and ready for redaction.

Test: trigger a clone, observe processing continues and redaction works
Bug: 373461116
Flag: android.os.profiling.system_triggered_profiling_new
Change-Id: I29a4a1cc55736992afeb4f79e495ecc0a7663cad
1 file changed