Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec89a228 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Rename trace_once to trace_system

We are adding another option, trace_process, to perform single process
trace.

Test: presubmit
Bug: 319394981
Change-Id: Ie8920dbcaee5bea383b881b237c6c8a8fffb4eb6
parent 6f6effe1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ public final class ProfcollectForwardingService extends SystemService {
        if (randomNum < traceFrequency) {
            BackgroundThread.get().getThreadHandler().post(() -> {
                try {
                    mIProfcollect.trace_once("applaunch");
                    mIProfcollect.trace_system("applaunch");
                } catch (RemoteException e) {
                    Log.e(LOG_TAG, "Failed to initiate trace: " + e.getMessage());
                }
@@ -327,7 +327,7 @@ public final class ProfcollectForwardingService extends SystemService {
            // Dex2oat could take a while before it starts. Add a short delay before start tracing.
            BackgroundThread.get().getThreadHandler().postDelayed(() -> {
                try {
                    mIProfcollect.trace_once("dex2oat");
                    mIProfcollect.trace_system("dex2oat");
                } catch (RemoteException e) {
                    Log.e(LOG_TAG, "Failed to initiate trace: " + e.getMessage());
                }
@@ -404,7 +404,7 @@ public final class ProfcollectForwardingService extends SystemService {
                String traceTag = traceInitialization ? "camera_init" : "camera";
                BackgroundThread.get().getThreadHandler().postDelayed(() -> {
                    try {
                        mIProfcollect.trace_once(traceTag);
                        mIProfcollect.trace_system(traceTag);
                    } catch (RemoteException e) {
                        Log.e(LOG_TAG, "Failed to initiate trace: " + e.getMessage());
                    }