Android 上的一些profiler tools

cpu这边先配了一个unity自带的profiler

 

https://docs.unity3d.com/560/Documentation/Manual/ProfilerWindow.html

连android有两种方式

wifi和usb

usb总是连不上,wifi可以 

adb这个命令别忘记了

adb forward tcp:5555 localabstract:Unity-{insert bundle identifier here}

 

首先要编个develop包 Build Setting---Development build

在手机上开debug mode

wifi

adb tcpip 5555

adb connect ipofyourphone

adb devices 检查一下

adb forward tcp:5555 localabstract:Unity-{insert bundle identifier here}

=============

拔了usb线 开wifi 来connect这样就不会连两个device

报错 error:more than one device/emulator

 

如果不拔usb线 连adb connect ip 之后再拔掉usb两个devices都会消失

===

看了下unity profiler里面的数据不多,有些函数可以跟去看。

再试下vtune

vtune看起来和framepro差不多。

 assetbundle.LoadAssetAsync()在另外一个线程里,抓到了。。。写了测试代码怎么也抓不到。。。还以为就在主线程的协程里面。。实际上就是另开IO线程的 

 

 

vtune

 

https://software.intel.com/en-us/vtune-amplifier-help-android-device-launch-android-package-target-type

posted on 2017-12-19 19:36  minggoddess  阅读(760)  评论(0编辑  收藏  举报