Hey guys, I want to use the profiler on my mobile application, but my PC is not connected via wifi, it is connected via Ethernet. So I can’t really do it that way. I have heard about this way:
For Android Debug Bridge (adb) profiling, follow these steps:
- Attach your device to your computer via cable and make sure that it shows in the adb
devices list. - Go to the Build Settings (menu: File > Build Settings), enable the Development Build checkbox, and then select Build & Run
- When the application launches on the device, open the Profiler window in the Unity Editor (menu: Window > Analysis > Profiler).
- From the Attach to Player drop-down menu, select AndroidProfiler(ADB@127.0.0.1:34999). The entry in the drop-down menu is only visible when the selected target is Android.
But I don’t really know how to use adb, I have checked the development build, I put my usb debugging on device on, i opened the profiler and nothing popped up(in the Attach to player menu). What is adb? How do I make it work withouth wifi?
Thanks everyone, and have a Merry Christmas and a Happy New Year!