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>
Fri, 4 May 2018 03:06:10 +0000 (20:06 -0700)
commit8eb891be6f53118cb4b116fe29d131de166957c1
tree796869a27ce8dbb32fb17c2c371ec885578d59b3
parente7b05b87979dcaebcb22bda18e44f7bd37cddfc2
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
Change-Id: I5647e0bfb47d31c0e39bb3f59650cc956f49c4db
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteInit.java