-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Include runtime flavor and platform information into .mibc Profile #71065
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @tommcdon Issue DetailsWith the work to enable PGO-based Profiled AOT on Mono, mono based .mibc files can now be generated. It would be convenient if there was some way to identify the Runtime flavor, Platform OS + Arch for a corresponding .mibc file. For instance, I had been testing the full pipeline of Profiled AOT on Mono, but unknowingly had generated a coreclr based .mibc (probably accidentally published a coreclr build and collected a .nettrace from the resulting executable). Only after comparing with another /cc: @lambdageek @davidwrighton @lateralusX
|
There are a couple of subtasks here:
|
I don't think we necessarily want a profile to become unusable if it's from the "wrong" runtime/platform, but it would be easier to diagnose profile issues if there was an option for the runtime to report that profile XYZ doesn't match platform/runtime ABC |
I planned to try to extend the MIBC format too, was planning to add:
|
Adding @davidwrighton @mangod9 who own the mibc format |
This seems pretty good. Adding an extra method to the PGO data to encode this data should be straightforward. I'd like to see it structured as a key/value store. Probably with just strings for keys and values. |
When closing a session there is a process info event emitted, it includes command line, os info as well as CPU architecture, but currently not runtime flavor. |
@EgorBo has agreed to take a look at adding the runtime flavor info to the MIBC file format. @EgorBo please let me know if any help/assistance is need with adding the runtime flavor to the process info event. |
Thanks, I see
@davidwrighton do you mean like
? |
With the work to enable PGO-based Profiled AOT on Mono, mono based .mibc files can now be generated. It would be convenient if there was some way to identify the Runtime flavor, Platform OS + Arch for a corresponding .mibc file.
For instance, I had been testing the full pipeline of Profiled AOT on Mono, but unknowingly had generated a coreclr based .mibc (probably accidentally published a coreclr build and collected a .nettrace from the resulting executable). Only after comparing with another
.mibc
that is more clearly Mono based could we guess that the previous .mibc was a coreclr based one./cc: @lambdageek @davidwrighton @lateralusX @tommcdon
The text was updated successfully, but these errors were encountered: