-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[android] update AOT profile #6548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Should those values be set in the initial java setter code? I wonder if we are doing something else wrong... |
| void Microsoft.Maui.Handlers.ButtonHandler:MapStrokeColor (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButtonStroke) | ||
| void Microsoft.Maui.Handlers.ButtonHandler:MapStrokeThickness (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButtonStroke) | ||
| void Microsoft.Maui.Handlers.ButtonHandler:MapStrokeColor (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButton) | ||
| void Microsoft.Maui.Handlers.ButtonHandler:MapStrokeThickness (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButton) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattleibow I think it's because the signature changed on these -- and so now the AOT profile just needs updated.
|
There are some changes in the template, let me run this again |
For dotnet/maui/main, I noticed the startup path changed a bit. Some
methods are not in the profile, such as:
AOT: NOT FOUND: Microsoft.Maui.Platform.ButtonExtensions:UpdateBackground (Google.Android.Material.Button.MaterialButton,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Platform.ButtonExtensions:UpdateBackground (Google.Android.Material.Button.MaterialButton,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Handlers.ButtonHandler:MapStrokeThickness (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Platform.ButtonExtensions:UpdateStrokeThickness (Google.Android.Material.Button.MaterialButton,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Handlers.ButtonHandler:MapStrokeColor (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Platform.ButtonExtensions:UpdateStrokeColor (Google.Android.Material.Button.MaterialButton,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Handlers.ButtonHandler:MapCornerRadius (Microsoft.Maui.Handlers.IButtonHandler,Microsoft.Maui.IButton).
AOT: NOT FOUND: Microsoft.Maui.Platform.ButtonExtensions:UpdateCornerRadius (Google.Android.Material.Button.MaterialButton,Microsoft.Maui.IButton).
There were also a couple changes in the template:
* 27c8d7e
* 6484698
I had to adjust some of the code in `src/ProfiledAot` to account for
changes in the template.
I also included the use of `Label` to set `FontAttributes` and `Text`,
so these properties are also in the profile.
`dotnet new maui` on a Pixel 5:
Before:
Average(ms): 567.8
Std Err(ms): 2.63227826965328
Std Dev(ms): 8.32399476747126
After:
Average(ms): 558.8
Std Err(ms): 2.57250418420997
Std Dev(ms): 8.13497251241686
e023442 to
c1a2514
Compare
For dotnet/maui/main, I noticed the startup path changed a bit. Some
methods are not in the profile, such as:
There were also a couple changes in the template:
I had to adjust some of the code in
src/ProfiledAotto account forchanges in the template.
I also included the use of
Labelto setFontAttributesandText,so these properties are also in the profile.
dotnet new mauion a Pixel 5: