Skip to content

feat(profiling): Convert profile output to the sample format#1611

Merged
phacops merged 27 commits into
masterfrom
pierre/profiling-convert-to-sample-format
Sep 27, 2022
Merged

feat(profiling): Convert profile output to the sample format#1611
phacops merged 27 commits into
masterfrom
pierre/profiling-convert-to-sample-format

Conversation

@phacops
Copy link
Copy Markdown
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.

Comment thread sentry_sdk/profiler.py Outdated
Comment thread sentry_sdk/profiler.py Outdated
current_stack.append(frames[frame])

try:
stack_idx = stacks.index(current_stack)
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread sentry_sdk/profiler.py
Comment thread sentry_sdk/profiler.py
@phacops phacops requested a review from Zylphrex September 13, 2022 23:39
Comment thread sentry_sdk/profiler.py Outdated
Comment thread sentry_sdk/profiler.py Outdated
@phacops phacops requested a review from Zylphrex September 15, 2022 19:06
Comment thread app.py Fixed
@phacops phacops enabled auto-merge (squash) September 26, 2022 17:55
@phacops phacops disabled auto-merge September 26, 2022 17:58
Comment thread sentry_sdk/tracing.py Outdated
Comment thread sentry_sdk/tracing.py Outdated
@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.

4 participants