优化经验杂记

2021.1.20

一,如何有效捕捉开发中的U3D手游崩溃,闪退问题

总思路:UNITY程序要开DevelopmentBuild,出现问题时连AndroidStudio查看现场

开不开DevelopmentBuild都可以看到闪退或崩溃日志,但要想使用AS的profiler看游戏的CPU,内存等指标必须要开DevelopmentBuild。

而且开DevelopmentBuild后,LOGCAT可以指定针对该游戏进程,不再输出其它进程的信息,减少信息干扰

 

1,游戏运行时闪退了

这时AS连上手机,logcat会自动刷出过往日志,默认最多缓存1024条吧(https://www.jianshu.com/p/c1d2f7e88e2f

消息过滤类别选为Error,就能看到所有错误日志。

闪退日志会有crash字样。

 

2,运行时复现

AS连接手机,运行游戏,消息过滤类型选为Error,查看错误信息。

闪退日志会有crash字样。

另外参考:https://blog.uwa4d.com/archives/USparkle_Crash.html 

 

2021.2.21

Arm Streamline is a performance profiler that is available as part of Arm Mobile Studio, a free-to-use suite of performance analysis tools for debugging and optimizing Android applications on devices that use an Arm Mali GPU. Streamline analyzes your game as it runs on an unrooted device and presents performance counter data to help you understand how your mobile application uses the device’s resources.

 来自:Arm & Unity Presents: 3D Art Optimization for Mobile Applications

posted @ 2021-01-20 23:13  时空观察者9号  阅读(153)  评论(0编辑  收藏  举报