OSDN Git Service

Make system server profiling an explicit runtime intent
authorCalin Juravle <calin@google.com>
Fri, 4 May 2018 02:51:18 +0000 (19:51 -0700)
committerCalin Juravle <calin@google.com>
Wed, 9 May 2018 21:37:56 +0000 (14:37 -0700)
commit5627db89966539f9494fa119e4c86db98ebd1690
tree77aeaa1c9ecf454c2cec6e943f81995a502652f1
parent40ffa170cae7a2c4fe7f520ef458559761060182
Make system server profiling an explicit runtime intent

Pass an explicit flag to the runtime when we need to profile the system
server. This ensures that we only start the ProfileSaver and allocate the
code cache when needed.

Test: manual, on a device with system server profiling enabled
Bug: 74081010

(cherry picked from commit 8eb891be6f53118cb4b116fe29d131de166957c1)

Merged-In: I756682a9644796afb53f0c010d2bd2764ea5a828
Change-Id: I756682a9644796afb53f0c010d2bd2764ea5a828
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteInit.java