Support system server ART-profiling

We don't have to map the code cache as executable if we only want to save
profiles. This enables system server profiling without disabling SElinux
to bypass the jit code cache exec-mapping.

Test: m test-art-host
      boot a device with system server profiling enabled.
Bug: 73313191

(cherry picked from commit e6fcde455478f767f080f380f5958c6e0177e667)

Merged-In: I7f25a905e0b23456183e39e58ad8f4b829ddf0c5
Change-Id: I7f25a905e0b23456183e39e58ad8f4b829ddf0c5
6 files changed