Skip to content

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Sep 13, 2022

We're looking to introduce a new profile format referred to as the Sample format (getsentry/relay#1462). This PR implements this format.

current_stack.append(frames[frame])

try:
stack_idx = stacks.index(current_stack)
Copy link
Member

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?

Copy link
Member

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

Copy link
Member

@sl0thentr0py sl0thentr0py left a 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

@phacops phacops requested a review from Zylphrex September 13, 2022 23:39
@phacops phacops requested a review from Zylphrex September 15, 2022 19:06
@phacops phacops enabled auto-merge (squash) September 26, 2022 17:55
@phacops phacops disabled auto-merge September 26, 2022 17:58
@phacops phacops requested a review from Zylphrex September 26, 2022 20:43
@phacops phacops merged commit 5348834 into master Sep 27, 2022
@phacops phacops deleted the pierre/profiling-convert-to-sample-format branch September 27, 2022 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants