Skip to content

Commit

Permalink
Merge "Update ArtManagerService for new profilebootclasspath properties"
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Chartier authored and Gerrit Code Review committed Nov 13, 2019
2 parents a98026f + 3926ad2 commit c62f571
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,13 @@ public boolean isRuntimeProfilingEnabled(@ProfileType int profileType, String ca
case ArtManager.PROFILE_APPS :
return SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false);
case ArtManager.PROFILE_BOOT_IMAGE:
// The device config property overrides the system property version.
boolean profileBootClassPath = SystemProperties.getBoolean(
"persist.device_config.runtime_native_boot.profilebootclasspath",
SystemProperties.getBoolean("dalvik.vm.profilebootclasspath", false));
return (Build.IS_USERDEBUG || Build.IS_ENG) &&
SystemProperties.getBoolean("dalvik.vm.usejitprofiles", false) &&
SystemProperties.getBoolean("dalvik.vm.profilebootimage", false);
profileBootClassPath;
default:
throw new IllegalArgumentException("Invalid profile type:" + profileType);
}
Expand Down

0 comments on commit c62f571

Please sign in to comment.