-
First you select development build for Android.(Build Settings-> Android -> check Develop Build box)
-
Here is the guide from Unity doc: https://docs.unity3d.com/Manual/ProfilerWindow.html
-
Before the 'adb forward' you should check the port(34999) first using:
netstat -a -o -n | find "34999"
-
Kill the process that alreay take the port "34999" using:
taskkill /F /PID process_id
-
adb forward --remove-all