Skip to content

Commit

Permalink
[android] update AOT profile for .NET 9 GA (#25509)
Browse files Browse the repository at this point in the history
There are very few changes as this point, but recording a new profile
shows a few changes, and maybe improvement by a very small amount:

    Before:
    Average(ms): 450.1
    Std Err(ms): 3.53537676760043
    Std Dev(ms): 11.1798429724611
    After:
    Average(ms): 448.6
    Std Err(ms): 2.54383787044519
    Std Dev(ms): 8.04432166879912

This is an average of 10 runs on a `dotnet new maui` template on a Pixel 7 Pro.

It might be effectively *the same*, but it's worth updating I suppose.
  • Loading branch information
jonathanpeppers authored Oct 25, 2024
1 parent bf4cafb commit 4bb47d4
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 61 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Methods:
Android.Content.Context Microsoft.Maui.MauiContext:<.ctor>b__6_1 ()
Android.Content.Context Microsoft.Maui.MauiContext:get_Context ()
Android.Content.Intent Android.App.Activity:get_Intent ()
Android.Content.PM.ApplicationInfo Android.Content.ContextWrapper:get_ApplicationInfo ()
Android.Content.PM.PackageInfo Android.Content.PM.PackageManagerInvoker:GetPackageInfo (string,Android.Content.PM.PackageInfoFlags)
Android.Content.PM.PackageManager Android.Content.ContextWrapper:get_PackageManager ()
Android.Content.Res.AssetManager Android.Content.ContextWrapper:get_Assets ()
Expand Down Expand Up @@ -241,7 +240,7 @@ Methods:
bool Microsoft.Maui.Controls.ControlsColorExtensions:IsNotDefault (Microsoft.Maui.Graphics.Color)
bool Microsoft.Maui.Controls.DependencyService/<>c__DisplayClass10_0:<AddDependencyTypeIfNeeded>b__0 (Microsoft.Maui.Controls.DependencyService/DependencyType)
bool Microsoft.Maui.Controls.DependencyService/<>c__DisplayClass11_0:<FindImplementor>b__0 (Microsoft.Maui.Controls.DependencyService/DependencyType)
bool Microsoft.Maui.Controls.Element/<Descendants>d__103`1<Microsoft.Maui.Controls.Element>:MoveNext ()
bool Microsoft.Maui.Controls.Element/<Descendants>d__104`1<Microsoft.Maui.Controls.Element>:MoveNext ()
bool Microsoft.Maui.Controls.ImageSource:IsNullOrEmpty (Microsoft.Maui.Controls.ImageSource)
bool Microsoft.Maui.Controls.Label:IsLabelSizeable (Microsoft.Maui.Controls.Label)
bool Microsoft.Maui.Controls.Label:TextChangedShouldInvalidateMeasure (Microsoft.Maui.Controls.Label)
Expand Down Expand Up @@ -301,6 +300,7 @@ Methods:
bool Microsoft.Maui.Platform.ViewExtensions:IsLoaded (Android.Views.View)
bool Microsoft.Maui.Platform.ViewExtensions:IsLoadedOnPlatform (Microsoft.Maui.IElement)
bool Microsoft.Maui.PropertyMapper/<GetKeys>d__17:MoveNext ()
bool Microsoft.Maui.RuntimeFeature:get_IsHybridWebViewSupported ()
bool Microsoft.Maui.ViewExtensions:NeedsContainer (Microsoft.Maui.IView)
bool Microsoft.Maui.VisualDiagnostics:get_IsEnabled ()
bool Microsoft.Maui.VisualDiagnostics/<>c:<.cctor>b__18_0 ()
Expand Down Expand Up @@ -877,7 +877,6 @@ Methods:
bool System.Threading.LowLevelLifoSemaphore:WaitCore (int)
bool System.Threading.LowLevelLifoSemaphore:WaitForSignal (int)
bool System.Threading.LowLevelLock:TryAcquire ()
bool System.Threading.LowLevelLock:TryAcquire_NoFastPath (int)
bool System.Threading.LowLevelMonitor:Wait (int)
bool System.Threading.LowLevelMonitor:WaitCore (int)
bool System.Threading.PortableThreadPool:get_HasForcedMaxThreads ()
Expand Down Expand Up @@ -1335,7 +1334,7 @@ Methods:
int System.RuntimeType:GetHashCode ()
int System.RuntimeTypeHandle:GetArrayRank (System.Runtime.CompilerServices.QCallTypeHandle)
int System.RuntimeTypeHandle:GetArrayRank (System.RuntimeType)
int System.SpanHelpers:<LastIndexOfValueType>g__SimdImpl|91_0 (int16&,int16,int)
int System.SpanHelpers:<LastIndexOfValueType>g__SimdImpl|93_0 (int16&,int16,int)
int System.SpanHelpers:IndexOf (char&,int,char&,int)
int System.SpanHelpers:IndexOfAnyValueType (int16&,int16,int16,int16,int16,int)
int System.SpanHelpers:IndexOfAnyValueType (int16&,int16,int16,int16,int16,int16,int)
Expand Down Expand Up @@ -1644,7 +1643,6 @@ Methods:
Java.Interop.JniType Java.Interop.JniPeerMembers/JniStaticMethods:GetMethodDeclaringType (Java.Interop.JniMethodInfo)
Java.Interop.JniType Java.Interop.JniType:GetCachedJniType (Java.Interop.JniType&,string)
Java.Interop.JniTypeSignature Java.Interop.JniRuntime/JniTypeManager:GetTypeSignature (System.Type)
Java.Lang.ICharSequence Android.Content.PM.PackageItemInfo:LoadLabelFormatted (Android.Content.PM.PackageManager)
Java.Lang.Object Android.Content.ContextWrapper:GetSystemService (string)
Java.Net.HttpStatus Java.Net.HttpURLConnection:get_ResponseCode ()
Java.Net.HttpURLConnection Android.Runtime.Extensions:JavaCast (Android.Runtime.IJavaObject)
Expand Down Expand Up @@ -1903,7 +1901,7 @@ Methods:
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.Element:get_Parent ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.Element:get_ParentOverride ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.Element:get_RealParent ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.Element/<Descendants>d__103`1<Microsoft.Maui.Controls.Element>:System.Collections.Generic.IEnumerator<TElement>.get_Current ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.Element/<Descendants>d__104`1<Microsoft.Maui.Controls.Element>:System.Collections.Generic.IEnumerator<TElement>.get_Current ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.TemplatedPage:Microsoft.Maui.Controls.IControlTemplated.get_TemplateRoot ()
Microsoft.Maui.Controls.Element Microsoft.Maui.Controls.ViewExtensions/<GetParentsPath>d__22:System.Collections.Generic.IEnumerator<Microsoft.Maui.Controls.Element>.get_Current ()
Microsoft.Maui.Controls.Element System.Collections.Generic.Queue`1<Microsoft.Maui.Controls.Element>:Dequeue ()
Expand Down Expand Up @@ -2274,7 +2272,6 @@ Methods:
single Microsoft.Maui.Platform.ContextExtensions:ToPixels (Android.Views.View,double)
single System.MathF:Sqrt (single)
string Android.Content.ContextWrapper:get_PackageName ()
string Android.Content.PM.PackageItemInfo:LoadLabel (Android.Content.PM.PackageManager)
string Android.Content.Res.TypedArray:GetString (int)
string Android.Net.UriInvoker:ToString ()
string Android.Runtime.AndroidTypeManager:GetReplacementTypeCore (string)
Expand Down Expand Up @@ -2329,8 +2326,6 @@ Methods:
string Microsoft.Extensions.Internal.TypeNameHelper:GetTypeDisplayName (System.Type,bool,bool,bool,char)
string Microsoft.Extensions.Internal.TypeNameHelper:ProcessType (System.Text.StringBuilder&,System.Type,Microsoft.Extensions.Internal.TypeNameHelper/DisplayNameOptions&)
string Microsoft.Extensions.Logging.Logger`1<Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler>:GetCategoryName ()
string Microsoft.Maui.ApplicationModel.AppInfoImplementation:get_Name ()
string Microsoft.Maui.ApplicationModel.AppInfoImplementation/<>c:<.cctor>b__23_0 ()
string Microsoft.Maui.Controls.Element:get_AutomationId ()
string Microsoft.Maui.Controls.PropertyChangingEventArgs:get_PropertyName ()
string Microsoft.Maui.Controls.Window:get_Title ()
Expand Down Expand Up @@ -2681,7 +2676,7 @@ Methods:
System.Collections.Generic.IEnumerable`1<System.Xml.Linq.XNode> System.Xml.Linq.XContainer:Nodes ()
System.Collections.Generic.IEnumerator`1<char> System.Linq.Enumerable/Iterator`1<System.Char>:System.Collections.Generic.IEnumerable<TSource>.GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.AspNetCore.Components.WebView.Maui.RootComponent> System.Collections.ObjectModel.Collection`1<Microsoft.AspNetCore.Components.WebView.Maui.RootComponent>:GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.Maui.Controls.Element> Microsoft.Maui.Controls.Element/<Descendants>d__103`1<Microsoft.Maui.Controls.Element>:System.Collections.Generic.IEnumerable<TElement>.GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.Maui.Controls.Element> Microsoft.Maui.Controls.Element/<Descendants>d__104`1<Microsoft.Maui.Controls.Element>:System.Collections.Generic.IEnumerable<TElement>.GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.Maui.Controls.Element> Microsoft.Maui.Controls.ViewExtensions/<GetParentsPath>d__22:System.Collections.Generic.IEnumerable<Microsoft.Maui.Controls.Element>.GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.Maui.Controls.Element> System.Collections.ObjectModel.ReadOnlyCollection`1<Microsoft.Maui.Controls.Element>:GetEnumerator ()
System.Collections.Generic.IEnumerator`1<Microsoft.Maui.Controls.Page> Microsoft.Maui.Controls.MenuItemTracker`1/<get_AdditionalTargets>d__7<Microsoft.Maui.Controls.MenuBarItem>:System.Collections.Generic.IEnumerable<Microsoft.Maui.Controls.Page>.GetEnumerator ()
Expand Down Expand Up @@ -3331,7 +3326,6 @@ Methods:
System.Runtime.CompilerServices.IAsyncStateMachineBox System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>:GetStateMachineBox (Microsoft.JSInterop.JSRuntimeExtensions/<InvokeVoidAsync>d__0&,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>&)
System.Runtime.CompilerServices.IAsyncStateMachineBox System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>:GetStateMachineBox (System.IO.BufferedStream/<CopyToAsyncCore>d__68&,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>&)
System.Runtime.CompilerServices.IAsyncStateMachineBox System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>:GetStateMachineBox (System.IO.Stream/<<CopyToAsync>g__Core|27_0>d&,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>&)
System.Runtime.CompilerServices.IAsyncStateMachineBox System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>:GetStateMachineBox (System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63&,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>&)
System.Runtime.CompilerServices.IAsyncStateMachineBox System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>:GetStateMachineBox (System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d&,System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>&)
System.Runtime.CompilerServices.TaskAwaiter`1<System.Threading.Tasks.Task> System.Threading.Tasks.Task`1<System.Threading.Tasks.Task>:GetAwaiter ()
System.Runtime.ExceptionServices.ExceptionDispatchInfo System.Runtime.ExceptionServices.ExceptionDispatchInfo:Capture (System.Exception)
Expand Down Expand Up @@ -3599,7 +3593,6 @@ Methods:
System.Threading.ExecutionContext& System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, Microsoft.JSInterop.JSRuntimeExtensions/<InvokeVoidAsync>d__0>:get_Context ()
System.Threading.ExecutionContext& System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.IO.BufferedStream/<CopyToAsyncCore>d__68>:get_Context ()
System.Threading.ExecutionContext& System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.IO.Stream/<<CopyToAsync>g__Core|27_0>d>:get_Context ()
System.Threading.ExecutionContext& System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:get_Context ()
System.Threading.ExecutionContext& System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:get_Context ()
System.Threading.Lock/State System.Threading.Lock/State:CompareExchange (System.Threading.Lock,System.Threading.Lock/State,System.Threading.Lock/State)
System.Threading.Lock/ThreadId System.Threading.Lock:EnterAndGetCurrentThreadId ()
Expand Down Expand Up @@ -3747,7 +3740,6 @@ Methods:
System.Type Android.App.Application:get_ThresholdType ()
System.Type Android.App.UiModeManager:get_ThresholdType ()
System.Type Android.Content.Intent:get_ThresholdType ()
System.Type Android.Content.PM.ApplicationInfo:get_ThresholdType ()
System.Type Android.Content.Res.Resources:get_ThresholdType ()
System.Type Android.Content.Res.TypedArray:get_ThresholdType ()
System.Type Android.Graphics.Paint:get_ThresholdType ()
Expand Down Expand Up @@ -4019,12 +4011,8 @@ Methods:
void Android.Content.ContextWrapper:SetTheme (int)
void Android.Content.Intent:.cctor ()
void Android.Content.Intent:.ctor (intptr,Android.Runtime.JniHandleOwnership)
void Android.Content.PM.ApplicationInfo:.cctor ()
void Android.Content.PM.ApplicationInfo:.ctor (intptr,Android.Runtime.JniHandleOwnership)
void Android.Content.PM.PackageInfo:.cctor ()
void Android.Content.PM.PackageInfo:.ctor (intptr,Android.Runtime.JniHandleOwnership)
void Android.Content.PM.PackageItemInfo:.cctor ()
void Android.Content.PM.PackageItemInfo:.ctor (intptr,Android.Runtime.JniHandleOwnership)
void Android.Content.PM.PackageManager:.cctor ()
void Android.Content.PM.PackageManager:.ctor (intptr,Android.Runtime.JniHandleOwnership)
void Android.Content.PM.PackageManagerInvoker:.cctor ()
Expand Down Expand Up @@ -5156,8 +5144,8 @@ Methods:
void Microsoft.Maui.Controls.Element:SetParent (Microsoft.Maui.Controls.Element)
void Microsoft.Maui.Controls.Element:SetupChildren ()
void Microsoft.Maui.Controls.Element:UpdateHandlerValue (string,bool)
void Microsoft.Maui.Controls.Element/<Descendants>d__103`1<Microsoft.Maui.Controls.Element>:.ctor (int)
void Microsoft.Maui.Controls.Element/<Descendants>d__103`1<Microsoft.Maui.Controls.Element>:System.IDisposable.Dispose ()
void Microsoft.Maui.Controls.Element/<Descendants>d__104`1<Microsoft.Maui.Controls.Element>:.ctor (int)
void Microsoft.Maui.Controls.Element/<Descendants>d__104`1<Microsoft.Maui.Controls.Element>:System.IDisposable.Dispose ()
void Microsoft.Maui.Controls.Entry:.cctor ()
void Microsoft.Maui.Controls.Entry:RemapForControls ()
void Microsoft.Maui.Controls.FlyoutPage:.cctor ()
Expand Down Expand Up @@ -5484,6 +5472,7 @@ Methods:
void Microsoft.Maui.Controls.Window:SendWindowAppearing ()
void Microsoft.Maui.Controls.Window:set_IsActivated (bool)
void Microsoft.Maui.Controls.Window:set_Page (Microsoft.Maui.Controls.Page)
void Microsoft.Maui.Controls.Window:set_Title (string)
void Microsoft.Maui.Controls.Window:SetEffectiveFlowDirection (Microsoft.Maui.Controls.EffectiveFlowDirection,bool)
void Microsoft.Maui.Controls.Window:UpdateHandlerValue (string,bool)
void Microsoft.Maui.Controls.Window/<>c:.cctor ()
Expand Down Expand Up @@ -7030,15 +7019,10 @@ Methods:
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.IO.Stream/<<CopyToAsync>g__Core|27_0>d>:ExecutionContextCallback (object)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.IO.Stream/<<CopyToAsync>g__Core|27_0>d>:MoveNext ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.IO.Stream/<<CopyToAsync>g__Core|27_0>d>:MoveNext (System.Threading.Thread)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:.cctor ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:.ctor ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:ExecuteFromThreadPool (System.Threading.Thread)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:ExecutionContextCallback (object)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.HttpContent/<LoadIntoBufferAsyncCore>d__63>:MoveNext (System.Threading.Thread)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:.cctor ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:.ctor ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:ExecuteFromThreadPool (System.Threading.Thread)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:ExecutionContextCallback (object)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:MoveNext ()
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1/AsyncStateMachineBox`1<System.Threading.Tasks.VoidTaskResult, System.Net.Http.StreamToStreamCopy/<<CopyAsync>g__DisposeSourceAsync|1_0>d>:MoveNext (System.Threading.Thread)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Java.Net.Proxy>:SetResult (Java.Net.Proxy)
void System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Microsoft.JSInterop.Infrastructure.IJSVoidResult>:AwaitUnsafeOnCompleted (System.Runtime.CompilerServices.ValueTaskAwaiter`1<Microsoft.JSInterop.Infrastructure.IJSVoidResult>&,System.Runtime.CompilerServices.IAsyncStateMachineBox)
Expand Down
Binary file not shown.
Loading

0 comments on commit 4bb47d4

Please sign in to comment.