runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[MulticoreJIT] Single file deployment does not support ProfileOptimization

Open FixBo opened this issue 2 years ago • 3 comments

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

FixBo avatar Sep 26 '24 07:09 FixBo

Tagging subscribers to this area: @agocke, @vitek-karas, @vsadov See info in area-owners.md if you want to be subscribed.

dotnet-policy-service avatar Sep 26 '24 21:09 dotnet-policy-service

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.

agocke avatar Nov 18 '24 21:11 agocke

Fixed by #108270

jkotas avatar Feb 18 '26 17:02 jkotas