I noticed that my Xamarin.Forms app needs more and more memory when doing nothing. Now I used the Xamarin.Forms template project and profiled it on a iOS device (iPad):
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TestProfiler"
x:Class="TestProfiler.MainPage">
<StackLayout>
<!-- Place new controls here -->
<Label Text="Welcome to Xamarin.Forms!"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage>
As you can see there is nothing, which would explain the memory increase, but the memory is increasing and increasing in the memory graph. Now I compared the two snapshots:
System.RuntimeType
, System.String
and Xamarin.Forms.BindableProperty
are having live objects. But I don't understand the sizes, because the graph increased from 42 MB to over 100 MB ...
Is the profiler wrong or am I misinterpreting the data? Why does the Xamarin.Forms app need more and more memory? I haven't touched it.