profileableShell
Enables Android system services and shell tools to analyze your application's release build for performance testing.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEditor.Android
- Assembly: UnityEditor.Android.Extensions
public static bool profileableShell { get; set; }
Remarks
Unity enables profiling for development builds by default, but you must explicitly enable profiling for release builds. Profiling release builds provides performance data that reflects real-world performance unlike development build profiling.
Notes:
- This property is available only if you disable Development Build.
- Applicable to release builds only. This property supports profiling with shell tools on devices running Android 10 (API level 29) and later. Profiling with Android system services is enabled by default on devices running Android 11 (API level 30) and later. On devices running earlier Android versions, enabling this setting has no effect and your app cannot be analyzed using Android system services or shell tools. Development builds support profiling by default with any profiling tools. For more information, refer to the Android documentation on profileable.
- Use this property to test your application's release build performance only. Consider disabling this property before you distribute your release build.
Examples
using UnityEditor.Android;public class Settings{ public void Setup() { UserBuildSettings.profileableShell = true; }}