In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to use Profiler to view the performance consumption data of games on real mobile phones. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
For Profiler in Unity3d, we usually watch the performance consumption data in Editor mode, but it can also be viewed directly in the game running on the real device. Export the Profiler of Unity3d to see the data, which can better test the specific reasons.
Here only talk about the practice of Android, look at the official documents, there are two main methods, both of which have been tried successfully!
(1) it is via wifi link
(2) it is linked through Android's adb tool.
One: WiFi practice, this method requires the computer and mobile phone where the network in the same subnet can be carried out. (here are two slightly different approaches.)
First of all, put your phone's wifi on the link.
Method 1:
This method can only be done when you know the ip of the wifi you link to. It doesn't matter if it doesn't feel good. The second way is to solve the problem perfectly.
(1) check Development Build,Autoconnect Profiler when exporting the U3D project, and then install the game to the phone.
(2) when you open the game, open window- > profiler at the same time, then select input IP and connect it.
Method 2:
(1) check Development Build,Autoconnect Profiler when exporting a U3D project, and then select Build And Run.
(2) Open window- > profiler, and you will see that it is automatically linked to our phone.
Second: the practice of ADB.
Pay attention to whether the firewall has blocked port 54998055511. If the firewall is shielded, open it.
(1) use USB to connect your mobile phone to your computer and make sure that the connection is successful and your mobile phone information can be seen on the computer.
(2) check Development Build,Autoconnect Profiler when exporting the U3D project, and then select Build And Run.
(3) Open window- > profiler and select AndroidProfiler (ADB@127.0.0.1:54999). Unity will automatically create an adb channel.
If you want to analyze another program. You can set it this way: open the CMD command line, cd to the adb root directory, or you can directly set the environment variable and add the path of adb in the Path column.
(my adb is at D:\ Program Files\ Java\ android-sdk-windows\ sdk\ platform-tools)
Then enter the following command:
Adb forward tcp:54999 localabstract:Unity- add your package name here (that is, Bundle Identifier)
For example: adb forward tcp:54999 localabstract:Unity-com.itffuture.protobuf
The effect of success:
If you are unable to connect during the test and make sure that the firewall is not blocking the port we want to connect to, report an error:
Then you can check Enable Internal Profile when exporting.
Now you can view the performance consumption data more accurately.
The above is the editor for you to share how to use Profiler to view the performance consumption data of games on real mobile phones. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.