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

Commit 85b33461 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "frameworks/base: add app launch timeline instrumentation"

parents 34d5259a a68fab3a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import android.os.Parcelable;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.StrictMode;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Log;
import android.util.Singleton;
@@ -2070,6 +2071,13 @@ class ActivityManagerProxy implements IActivityManager
            ParcelFileDescriptor profileFd, Bundle options) throws RemoteException {
        Parcel data = Parcel.obtain();
        Parcel reply = Parcel.obtain();

        if (intent.getComponent() != null) {
            Log.i("ActivityManager", "Timeline: Activity_launch_request id:"
                    + intent.getComponent().getPackageName() + " time:"
                    + SystemClock.uptimeMillis());
        }

        data.writeInterfaceToken(IActivityManager.descriptor);
        data.writeStrongBinder(caller != null ? caller.asBinder() : null);
        data.writeString(callingPackage);
@@ -2419,6 +2427,8 @@ class ActivityManagerProxy implements IActivityManager
    public void activityIdle(IBinder token, Configuration config, boolean stopProfiling)
            throws RemoteException
    {
        Log.i("ActivityManager", "Timeline: Activity_idle id: " + token + " time:"
                + SystemClock.uptimeMillis());
        Parcel data = Parcel.obtain();
        Parcel reply = Parcel.obtain();
        data.writeInterfaceToken(IActivityManager.descriptor);
+2 −0
Original line number Diff line number Diff line
@@ -929,6 +929,8 @@ final class ActivityRecord {
                service.scheduleAppGcsLocked();
            }
        }
        Log.i(ActivityManagerService.TAG, "Timeline: Activity_windows_visible id: "
                + this + " time:" + SystemClock.uptimeMillis());
    }

    public void windowsGone() {