Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: dotnet/runtime#71787
Context: https://dev.azure.com/dnceng/public/_artifacts/feed/7.0.100-preview.7.22377.5-nonshipping/NuGet/dotnet-pgo/overview/7.0.0-preview.7.22375.6
.nettrace
file:dotnet-pgo
:.mibc
:To test this, I made a
dotnet new android
app and added:Open Questions
If you have to use a weird feed for
dotnet-pgo
is that OK? Are wenot recommending users record their own profiles yet?
How do we make an MSBuild target to make recording profiles easier?
I have not been able to programmatically control
dotnet-trace
ina nice way.
For example:
Do stuff in the app, then:
See: #7087
.nettrace
or.mibc
file? We track the methods in a text file in source control.See:
https://github.com/xamarin/xamarin-android/blob/9b378e578fa4ff878281da113388f05a4027d484/src/profiled-aot/dotnet.aotprofile.txt
https://github.com/dotnet/maui/blob/08ca198145f27af96e0738853c341dbf33d47804/.nuspec/maui.aotprofile.txt
Is
@(AndroidMibcProfile)
the right name for the item group? Orshould we use
@(AndroidAotProfile)
and just detect the.mibc
file extension?
.mibc
files could passmibc-profile=
to the AOTcompiler.
Is it OK if all methods are present in the
.mibc
file? With AOTprofiles we did:
This removed all methods from
android.dll
, which is the mainassembly of the app recorded.
https://github.com/radekdoulik/aotprofile-tool
TODO
Some things TODO even after the above questions are answered:
.mibc
file in our workload, setup defaults to use itsrc/profiled-aot/build.proj
to record.mibc
profiles. I just did them manually right now.
Sample project with
.mibc
file: doo.zip