I followed the steps from the doc (http://docs.unity3d.com/Documentation/Manual/wp8-profiler.html) but somehow the profiler (Unity 4.3.1) has not been able to connect to my Windows Phone a single time using its IP address (this is platform specific, I verified I can still profile on Android - but of course that does not use wifi). Since the doc says “One of the simplest ways to profile Windows Phone 8 app is over WiFi”, I was wondering what the other ways are, in case I would have more luck with one of them.
I’m afraid the documentation is giving a false impression, wi-fi is indeed the only option. Troubleshooting steps:
- Make sure the computer running Unity Editor is on the same Wi-Fi network as the phone;
- Check if you can ping the phone and it responds;
- Try disabling your firewall - it might be blocking the connection;
- Make sure you are deploying “Release” build to the phone - as opposed to master.
Same network, ping responds, I had verified there was an exception for Unity in the firewall but this time I turned it off completely, release build: still not working. The thing that’s odd is after getting messages in the console about the profiler trying to connect with a 1ms / 10ms / and sometimes 100ms timeout, I’m not getting an error saying the operation failed, which I was seeing the other day. So, it kind of looks like maybe I’m connected, but no frame data is showing up.
I’m running Windows 8 Pro on a Mac in a Parallels VM, does that make any difference?
I’m mostly interested in checking my memory usage for now, especially the Committed Total in Unity; is that the same number that’s returned by MemoryManager.ProcessCommittedBytes?
It’s the same number - that’s where the profiler gets its data from.
I can’t say for sure whether VM could cause trouble. Wild guess - did you try connecting from Unity editor on OS X?
This may very well be your problem. We can profile loads of Win8 devices on our Wifi Network with no issues.
Are your PC VM and device connected to the same Wifi network? How are you getting the phone’s IP, do you click on the connected Wireless network to see it?
Are your PC VM and device connected to the same Wifi network?
Yes, my WP8 and Mac were on the same wifi network, and the VM uses the Mac’s connection.
How are you getting the phone’s IP, do you click on the connected Wireless network to see it?
Yes, that’s what I read in another thread you wrote (IIRC)
I haven’t tried again since my last post, I got the information I needed for now (memory usage) by adding some methods to my plugin.