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

Commit 7ee72947 authored by Yi Kong's avatar Yi Kong
Browse files

profcollect: Switch to process level tracing for camera open events

Process level tracing has a lower overhead and can produce more accurate profiles.

Test: manual
Bug: 319394981
Change-Id: Id27a3ec427af453b353a840f695bc20922734cc2
parent 40d5af2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -404,7 +404,7 @@ public final class ProfcollectForwardingService extends SystemService {
                String traceTag = traceInitialization ? "camera_init" : "camera";
                String traceTag = traceInitialization ? "camera_init" : "camera";
                BackgroundThread.get().getThreadHandler().postDelayed(() -> {
                BackgroundThread.get().getThreadHandler().postDelayed(() -> {
                    try {
                    try {
                        mIProfcollect.trace_system(traceTag);
                        mIProfcollect.trace_process(traceTag, "android.hardware.camera.provider");
                    } catch (RemoteException e) {
                    } catch (RemoteException e) {
                        Log.e(LOG_TAG, "Failed to initiate trace: " + e.getMessage());
                        Log.e(LOG_TAG, "Failed to initiate trace: " + e.getMessage());
                    }
                    }