-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-138122: Extend binary profiling format with full source location and opcode #143088
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
Conversation
|
@lkollar smaller PR here to add opcode and location support to the file format. Most of the bulk is tests + docs update. |
…tion and opcode Add end_lineno, column, end_column, and opcode fields to frame entries. Uses delta encoding for end positions to minimize file size. reader, writer, tests, and documentation.
97a86dd to
bb4129f
Compare
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
lkollar
left a comment
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.
This looks great, just a couple of minor things.
|
@lkollar fixed |
| f"Thread ({interp_id}, {thread_id}), sample {i}, " | ||
| f"frame {j}: opcode mismatch " | ||
| f"(expected {exp_frame['opcode']}, got {act_frame['opcode']})", | ||
| ) |
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.
This is a long and duplicate list, that's not very dry, I wrote pablogsal#119
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.
Thanks a lot @StanFromIreland !
StanFromIreland
left a comment
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.
LGTM
Add end_lineno, column, end_column, and opcode fields to frame entries.
Uses delta encoding for end positions to minimize file size.
reader, writer, tests, and documentation.