-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add support for storing method handle histograms in profiles #67919
Conversation
Allow method handle histograms in .mibc files and in the PGO text format. Contributes to dotnet#44610.
ec36d86
to
26ad0a8
Compare
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.
Jit and SPMI changes look good.
WIll defer to David or Michal for the remainder of the changes.
Do you need to change the JIT-EE GUID? |
I have some follow-up changes that will actually start producing and using the new kind of PGO data. I think we can delay updating the JIT-EE GUID to that as just adding new PGO schema kinds should be binary compatible (and my future changes will probably also need another JIT-EE GUID update). |
@jakobbotsch Yes, this requires a bump in the R2R minor version. |
@jakobbotsch Have you verified that with these changes the dotnet-pgo tool continues to work with .NET 6 runtimes? |
Is it ok to wait until future changes that actually start producing and consuming these? At that point I will add something similar to
Yes, it produced a .mibc with the same hash as dotnet-pgo from current main in my test. |
When in doubt, bump the version. If there is no chance that new data could be produced, you don't need to, but bumping the R2R version is pretty cheap, and doesn't come with significant costs as old R2R code should not be broken. |
@davidwrighton I've bumped the R2R minor version and also the JIT-EE GUID to be safe, please take another look. |
ping @davidwrighton, anything else you think I should do here? |
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.
Just looked at JIT / SPMI in depth.
Ping @davidwrighton, my follow-up depends on this one. |
Allow method handle histograms in .mibc files and in the PGO text format.
Contributes to #44610.
@davidwrighton would this in theory need a R2R version bump? I suppose we can wait with such a bump until we actually start producing profiles with this data (at which point we should also add an equivalent of
GetLikelyClass
)?cc @dotnet/jit-contrib