Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

UserBuildSettings.profileableShell

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static bool profileableShell;

Description

Enables Android system services and shell tools to analyze your application's release build for performance testing.

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.
using UnityEditor.Android;

public class Settings { public void Setup() { UserBuildSettings.profileableShell = true; } }