-
Notifications
You must be signed in to change notification settings - Fork 515
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
feat(profiling): Convert profile output to the sample format #1611
Conversation
sentry_sdk/profiler.py
Outdated
current_stack.append(frames[frame]) | ||
|
||
try: | ||
stack_idx = stacks.index(current_stack) |
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.
I have no clue what the sizes of these are, but why not do the same optimization as with frames
and frames_list
, so have a dict stacks_dict
and a list stacks_list
instead of walking the current stacks
list with index
?
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.
oh ok @Zylphrex said the same, did not refresh
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 except for that one comment
…more in profiler.py
We're looking to introduce a new profile format referred to as the Sample format (getsentry/relay#1462). This PR implements this format.