(转载)[Unity3D]关于Android真机调测Profiler
来源:互联网 发布:大数据金融行业应用 编辑:程序博客网 时间:2024/06/05 23:48
转载http://www.itnose.net/detail/6114895.html
Android设备连接Unity Profiler性能分析器
2014-09-18 22:37
Unity提供两种方式让Developer的Android设备连接Profiler进行性能分析:
1、通过wifi,Android设备和计算机处于同一个Wlan中。
2、通过USB ADB
一般情况我们的计算机都是网线,所以我们采用ADB的方式。相比与wifi,ADB也更及时的反应设备性能。
官方的英文文档如下:
http://docs.unity3d.com/Manual/Profiler.html
For ADB profiling, follow these steps: 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 “Development Build” checkbox in Unity’s build settings dialog, and hit “Build & Run”. When the app launches on the device, open the profiler window in Unity Editor (Window->Profiler) Select the AndroidProfiler(ADB@127.0.0.1:54999) from the Profiler Window Active Profiler drop down menu. Note: The Unity editor will automatically create an adb tunnel for your application when you press “Build & Run”. If you want to profile another application or you restart the adb server you have to setup this tunnel manually. To do this, open a Terminal window / CMD prompt and enter adb forward tcp:54999 localabstract:Unityinsert bundle identifier hereNote: The entry in the drop down menu is only visible when the selected target is Android.If you are using a firewall, you need to make sure that ports 54998 to 55511 are open in the firewall’s outbound rules - these are the ports used by Unity for remote profiling.
按照文档的步骤,这里我来翻译一下:
首先我们先设置ADB:
打开CMD命令行窗口,输入以下命令:
adb forward tcp:54999 localabstract:Unity-com.thisisgame.gamedemo
然后 从Unity中Export Android 工程的时候一定要勾选 Development Build
然后在手机上打开游戏。
打开Unity Profiler窗口选择(ADB@127.0.0.1:54999)
然后就能在Profiler进行性能分析了。
1 0
- (转载)[Unity3D]关于Android真机调测Profiler
- [Unity3D]关于Android真机调测Profiler
- [Unity3D]关于Android真机调测Profiler
- [Unity3D]关于Android真机调测Profiler
- [Unity3D]关于Android真机调测Profiler
- [Unity3D]关于Android真机调测Profiler
- Unity3D Android 真机调测 Profiler
- 关于Android真机调测Profiler
- 关于Android真机调测Profiler
- Android真机调测Profiler
- 【Unity3D】Android和ios真机调试测Profiler
- Unity Profiler之Android真机调测
- Unity3D Profiler调试
- Android Profiler
- Unity3D-Unity Profiler性能分析器
- Unity3d Profiler 踩坑记实
- Unity3D Open Built-in Profiler
- Unity Profiler连接Android真机调测分析
- 存储过程的优缺点
- bitmap setPixels报java.lang.IllegalStateException异常解决方法
- jQuery对象入门级介绍
- 独立编址,统一编址,IO端口,IO内存,冯·诺伊曼,哈佛结构
- vlc-android源码的编译
- (转载)[Unity3D]关于Android真机调测Profiler
- 图片uri与path的相互转换
- Idea SpringMVC+Spring+MyBatis+Maven+Tomcat调整
- STM32F4 UART DMA初始化
- 高并发量网站解决方案
- Win10GodMode上帝模式
- MATLAB求最大值max函数
- 异步系统的性能调优记录(redis做消息队列)
- minigui安装及问题总结