I come from the Unity community, where we have a profiler which shows which methods cost how many milliseconds to run, and shows CPU usage, for example. I wonder if there is such a profiler available for MonoGame Android game developers.
From what I have Googled, I can find the following methods:
- Android Profiler (Android Studio)
- Xamarin Profiler (Microsoft)
- Performance Profiler (Microsoft Visual Studio)
- Snapdragon Profiler (Qualcomm)
This is one of the best ones out there, and I got it to work by loading in an APK into Android Studio. However, it cannot sample .NET code, meaning even though I would be able to see CPU and memory usage, I cannot see what method in C# is causing that lag, or whatever else I am profiling.
Needs Visual Studio Enterprise. Now, that is very expensive. And I do not want to subscribe to that. (No one does.)
It doesn’t work for Android. At least, it might, but it lists some very important tools such as CPU and Memory Usage as “not applicable”?
I got to admit, I haven’t tried this one. However, it only works with Snapdragon-powered devices, and I think that to be very limiting. And I’m not sure, but I think this one also doesn’t support .NET code sampling.
Anyways, what are methods you MonoGame Android developers are using? Do you use Stopwatches, Stopwatches, everywhere?