unity profiler深入学习2:ios调试配置
来源:互联网 发布:2017全球华人网络春晚 编辑:程序博客网 时间:2024/05/19 13:43
Unity的ios Profiler工具默认支持三种模式:
1是编辑器模式,2是本地设备模式,3是局域网模式。
编辑器模式启动步骤:
1.打开unity profiler窗口,并且通过Active Profiler下拉列表中的Editor选项来进行连接。
局域网模式启用步骤:
1.获取手机当前网络的ip地址,或者流程如下:设置->Wi-Fi->状态信息->ip地址。参考网址如下:
http://jingyan.baidu.com/article/59a015e3534c74f79488652a.html
2.打开unity profiler窗口,并且通过Active Profiler下拉列表中的Enter IP选项,输入当前手机ip并进行连接。
本地设备号模式启用步骤:
1.关闭防火墙,或者在启用防火墙时,确保端口54999已在防火墙的出站规则中打开,保证adb和unity能正常访问到端口。
windows端参照网址如下:
http://jingyan.baidu.com/article/c843ea0b7d5c7177931e4ab1.html
mac端参照网址如下:
http://jingyan.baidu.com/article/4ae03de31c278b3eff9e6b83.html
2.打开unity,切换平台到iOS平台,打开profiler窗口,并且通过Active Profiler下拉列表中的iPhone名称(iPhone标识)选项来进行连接。
注意:
1.如果Active Profiler下拉列表没有iPhone相关选项,此时可以参照以下网址解决:
http://answers.unity3d.com/questions/51478/unity-pro-profiler-cant-find-my-iphone.html
http://answers.unity3d.com/questions/340373/wth-profiler-not-working-with-ios.html
2.windows和mac在进行ios真机profiler时,可以通过代码BuildOptions.Development|BuildOptions.ConnectWithProfiler|BuildOptions.AllowDebugging设置profiler选项,也可以在build setting中勾选设置,对应截图如下:
3.在Editor中运行项目时,引擎会进行很多的辅助操作来记录各种游戏运行信息,和真机调试时相差会比较大,所以一般不以Editor模式作为真机运行性能参数指标。
4.局域网模式查看profiler数据往往存在一定的延迟性。而且必须保证本机与手机所连接的网络都是同一个局域网内方可进行调试。
5.本地设备编号模式将本地unity占用的54999端口的数据定位传输到指定手机上,相比局域网模式更实时,相对editor模式更准确,所以一般我们使用该模式来查看ios手机上性能参数指标。
参考地址:
官方版:https://docs.unity3d.com/Manual/Profiler.html
翻译版:http://www.cnblogs.com/alan777/p/6115505.html
- unity profiler深入学习2:ios调试配置
- unity profiler深入学习1:android调试配置
- unity profiler深入学习5:memory profiler
- unity profiler深入学习6:rendering profiler
- unity profiler深入学习3:cpu usage profiler
- unity profiler深入学习4:gpu usage profiler
- Android连接unity profiler调试
- unity真机profiler调试
- unity-Profiler调试Android的正确姿势
- iOS 性能调试Instruments ->Time Profiler
- Unity 内存管理——手机调试Profiler
- unity中IOS和Android真机Profiler
- 【Unity3D】Android和ios真机调试测Profiler
- unity中Profiler
- Unity中Profiler视图
- unity Profiler for Android
- unity Profiler性能分析
- Unity Profiler 性能分析
- vue.js 初探之用户管理
- 面试题4:将空格换成其他的字符串
- jzoj5220 【GDOI2018模拟7.10】C (双序列dp)
- Debian下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法
- 商场分类导航效果
- unity profiler深入学习2:ios调试配置
- Linux下载东西
- HDP安装前准备(一)
- 数字签名与数字证书
- Codeforces 786A Berzerk DP+博弈
- HDU 5115 Dire Wolf(区间DP)
- Jsoncpp的使用详细教程
- maven install 插件介绍
- Hibernate5.2学习从零开始-第一天(零散内容)