See, there is no data coming up! :(
I tried this too:
Still no luck. I can profile via wifi but its horribly slow. So slow that I can not even play on mobile while I am profiling in PC; looked like I was rendering images one in every seconds or so. So I thought adb profiling can give it a good shot.
The Manual pages you linked to are for Unity 5.4 and have been updated for 2017.4 where the port changed to 34999.
That doesn’t explain why build & run doesn’t work though. I’m assuming you’re not disconnecting the phone, restarting the app or killing adb daemon?
This could be a bug. You could try if it works with a different Unity version or device or file a bug report directly.
As a workaround, you could also try build and install it manually, then go to cmd and enter
And then choosing that target through the drop down in the Profiler window.
While it shouldn’t make a difference, maybe also try the Auto Connect Profiler option. But really, this should be working and I don’t have enough insight into debugging via adb. Wifi usually does it for me.
Thanks @MartinTilo . adb forward tcp:34999 localabstract:Unity-com.portbliss.GAMENAME
This worked for me.
On WiFi, the framerate is horrible. On cable it works like a magic
I don’t know what magic is this, but it solved the problem for me!
Connecting a Nokia 2 Android device, to a mac
Nokia 2 is connected to a different wifi, than mac
but whatever that command is doing, it fixes it.
I have the data in profiler now.
(Funny, that in build settings, under run device, I could see my device. Also with adb devices.
But profiler could not connect to it)