Consider the XAML:
<VerticalStackLayout>
<Image Source="foo.png" />
</VerticalStackLayout> graph TD;Consider the XAML:
<VerticalStackLayout>
<Image Source="foo.png" />
</VerticalStackLayout> graph TD;Part of the docs are here:
But this expands on this, with a list of steps I do to profile .NET MAUI.
An overview:
dotnet-trace with some settingsThis is a description on how I build/contribute to .NET MAUI, it may differ from DEVELOPMENT.md. I thought I would write this down in case it helps someone.
If I'm testing the provisioning of .NET and workloads, I may run:
These instructions are also on this MS internal loop.
For now, use a specific build of the .NET SDK:
Install Project System Tools for VS 2022.
Open View > Other Windows > Build Logging:
Hit the "play" button:
To install the maui workload, you have two options:
dotnet workload install commands.msi files for each workload pack. Note that the concept of a "Visual Studio workload" is different than a ".NET workload".VS for Mac's installer and updater use dotnet workload install commands. It's considerably simpler to get a Mac machine to a clean state.
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ |
| SRC_DIR="/Users/jopepper/src" | |
| XA_DIR="$SRC_DIR/xamarin-android" | |
| XA_TOOLCHAIN_DIR="/Users/jopepper/android-toolchain" | |
| XA_ANDROID_SDK_DIR="$XA_TOOLCHAIN_DIR/sdk" | |
| JAVA_HOME="$XA_TOOLCHAIN_DIR/jdk" | |
| alias xabuild="$XA_DIR/bin/Debug/bin/xabuild" | |
| alias xabuildr="$XA_DIR/bin/Release/bin/xabuild" | |
| alias adb="$XA_ANDROID_SDK_DIR/platform-tools/adb" | |
| alias java="$JAVA_HOME/bin/java" | |
| alias javac="$JAVA_HOME/bin/javac" |
Over December, I have been able to work on Xamarin.Forms + Android startup perf. Here is the initial results I'm seeing with the accumulation of all my changes.
All runs were on a Pixel 3 XL
Debug:
01-15 23:46:01.157 1473 1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +859ms
01-15 23:46:04.919 1473 1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +843ms