[MulticoreJIT] Single file deployment does not support ProfileOptimization
Create app with profile enable
ProfileOptimization.SetProfileRoot(AppDomain.CurrentDomain.BaseDirectory); ProfileOptimization.StartProfile("profile");
Publish as selfcontained single file
dotnet publish --sc -p:PublishSingleFile=true
Run application
The "profile" is created with a size of only 64 bytes
According to my research, it's because of this check https://github.com/dotnet/runtime/blob/19da949dbc1e462e8404799b9218754cf571c8d0/src/coreclr/vm/multicorejitplayer.cpp#L452
Tagging subscribers to this area: @agocke, @vitek-karas, @vsadov See info in area-owners.md if you want to be subscribed.
The "profile" is created with a size of only 64 bytes According to my research, it's because of this check
Yup, looks likely. At the moment I would say that it's not supported w/ single-file. I can't promise we'll get to this any time soon.
Fixed by #108270