|
I am trying to use the Profiler to log information (ala this: http://answers.unity3d.com/questions/2228/how-do-i-profile-in-the-web-player), but it does not seem to work (or I can't find the log file). (It does work in my editor though). Is this feature supported for Android? If so, how do I get it to work (where would I look for the log file, or is there anything special I need to do to set it up?) If not, is there any other profiling tips for Android? Edit: Although I accepted the answer below as the best method I found so far, I am still looking for better ways.
(comments are locked)
|
|
For now, this is what I am doing to get at least some information:
This gives a tiny amount of profiling information (frametime, number of tris, time spend in in different areas, etc.), and updates as the program is run. (It also displays Debug.Log messages, which is even more useful than the actual profiling information). You can click on the adb window to pause output, and press enter to resume. I run adb through PowerShell - I don't know pausing / resuming will work otherwise.
(comments are locked)
|
|
For a better access to the logcat information I would recommend installing eclipse together with the ADT Plugin: http://developer.android.com/sdk/eclipse-adt.html After installed just go to Window > Show View > Logcat. It may sound like overkill, but having the ability to pause and filter the messages by process ID, Application Name, etc ... is very helpful. Agreed, using Eclipse and having an interface to sort/filter and view profiling information is far mouse useful than a command prompt/powershell window.
Jul 20 '12 at 08:24 AM
Meltdown
(comments are locked)
|
|
http://docs.unity3d.com/Documentation/Manual/Profiler.html Remote profiling can be enabled on Android devices through two different paths : WiFi or ADB. For WiFi profiling, follow these steps: Note: The Android device and host computer (running the Unity Editor) must both be on the same subnet for the device detection to work.
(comments are locked)
|
|
Run ..>android-sdk>tools>ddms.bat from sdk folder to see logcat messages (update SDK !)
(comments are locked)
|
|
(comments are locked)
|
