Introduction
Developing mobile apps with Xamarin is easy but it’s not enough to develop a mobile app. To develop a good mobile app, it has to pass certain parameters as an app should be user friendly, UI should be perfect over all the devices and platforms, there should be good memory management, all the exceptions should be handled etc. With Xamarin profiler, the developers will easily find the Memory leaks, resolve the performance issues, exceptions, get to know the application's memory consumption etc. All these parameters are provided by Xamarin profiler, which makes the Application perfect.
Solution
Xamarin profiler provides various options to measure the performance, as shown below.
- Allocation
It gives data about the memory, it gives you data about the memory allocation, object allocation, live objects, private bytes and call tree.
- Cycles
To track the memory cycles, here you will get cycles graph and its stack trace, which helps the developers to find the memory leaks.
- Time Profiler
It is used to track the performance of the Application.
Here are steps to use Xamarin profiler with Visual Studio.
Prerequisites
- Visual Studio Enterprise Edition.
- Xamarin
- Emulator or mobile device (preferred)
Step 2
Now, open your solution in Visual Studio and go to Analyze menu. Select Xamarin profiler. For details, refer the screenshot.
Now, open your solution in Visual Studio and go to Analyze menu. Select Xamarin profiler. For details, refer the screenshot.
Note
When you select the project, make sure that you have selected Device / Emulator, which is in running mode because Xamarin profiler will analyze the results on the real app.
When you select the project, make sure that you have selected Device / Emulator, which is in running mode because Xamarin profiler will analyze the results on the real app.

Step 3
Now, Xamarin profiler opens up, as shown in the screenshot.
Now, Xamarin profiler opens up, as shown in the screenshot.

Here, select appropriate option. It is recommended to select All Instruments.







DeepanPosted Aug 21, 2019, 1:30 AM
Good information