Unity Profiler - zzragida/UnityDocs GitHub Wiki

Reference

Webplayer

Attach Unity Profiler

  • Check the Development Build checkbox in Unity's Build Settings dialog and also open the Profiler windows before starting the Build.

  • When the game is running is the webplayer, make sure that Release Channel is set to Development. Alt+right click on the web player to open the release channel selection menu.

Select OSXWebPlayer(YOUR COMPUTER NAME) or WindowsWebPlayer(YOUR COMPUTER NAME) as appropriate from the Profiler Window's Active Profiler drop-down menu.

iOS

Attach Unity Profiler

  • Connect your iOS device to your WiFi network (local/adhoc WiFi network is used by profiler to send profiling data from device to the Unity Editor.)

  • Check "Autoconnect Profiler" checkbox in Unity's build settings dialog.

  • Attach your device to your Mac via cable and hit "Build & Run" in Unity Editor.

  • When app launches on device open profiler window in Unity Editor.

Internal Profiler

  • Build로 생성된 Xcode 프로젝트의 iPhone_Profiler.h 파일의 ENABLE_INTERNAL_PROFILER 수치를 1로 지정
  • 프로젝트 Build & Run

Android

Attach Unity Profiler

  • For WiFi profiling

    • Make sure to disable Mobile Data on your Android device.
    • Connect your Android device to your WiFi network.
    • Check the "Autoconnect Profiler" checkbox in Unity's build settings dialog.
    • Attach your device to your Mac/PC via cable and hit "Build & Run" in Unity Editor.
    • When the app launches on the device, open the profiler window in Unity Editor.
    • If the Unity Editor fails to autoconnect to the device, select the appropriate device from the Profiler Window Active Profiler drop down menu.
  • For ADB profiling

    • Attach your device to your Mac/PC via cable and make sure ADB recognizes the device (i.e. it shows in adb devices list).
    • Check the "Autoconnect Profiler" checkbox in Unity's build settings dialog.
    • When the app launches on the device, open the profiler window in Unity Editor.
    • Select then AndroidProfiler([email protected]:54999) from then Profiler Window Active Profiler drop down menu.

Internal Profiler

  • Enable "Enable Internal Profiler" in Other Settings
  • Use logcat