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

Commit 8172cb6a authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

Merge "Make system server profiling an explicit runtime intent" am: 232011c7 am: a50afa5e

am: 9821335e

Change-Id: Id51584aca3c16e1d8e90fbac16bd851b4e4f7879
parents a792a95b 9821335e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -68,6 +68,10 @@ public final class Zygote {
     */
    public static final int API_ENFORCEMENT_POLICY_SHIFT =
            Integer.numberOfTrailingZeros(API_ENFORCEMENT_POLICY_MASK);
    /**
     * Enable system server ART profiling.
     */
    public static final int PROFILE_SYSTEM_SERVER = 1 << 14;

    /** No external storage should be mounted. */
    public static final int MOUNT_EXTERNAL_NONE = IVold.REMOUNT_MODE_NONE;
+6 −0
Original line number Diff line number Diff line
@@ -702,6 +702,12 @@ public class ZygoteInit {
            ZygoteConnection.applyDebuggerSystemProperty(parsedArgs);
            ZygoteConnection.applyInvokeWithSystemProperty(parsedArgs);

            boolean profileSystemServer = SystemProperties.getBoolean(
                    "dalvik.vm.profilesystemserver", false);
            if (profileSystemServer) {
                parsedArgs.runtimeFlags |= Zygote.PROFILE_SYSTEM_SERVER;
            }

            /* Request to fork the system server process */
            pid = Zygote.forkSystemServer(
                    parsedArgs.uid, parsedArgs.gid,