Skip to content
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(flamegraph): Keep top N samples in flamegraph #526

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

Zylphrex
Copy link
Member

Previously, we filtered out any samples that occurred less than 4 times. This results in a poor onboarding experience where if the user sends their first profile, it may not have many samples ands does not render anything on the view. This changes the logic to keep the top N samples instead to emphasize the most common stacks while not keeping infrequent ones when there are lots of others.

Previously, we filtered out any samples that occurred less than 4 times. This
results in a poor onboarding experience where if the user sends their first
profile, it may not have many samples ands does not render anything on the view.
This changes the logic to keep the top N samples instead to emphasize the most
common stacks while not keeping infrequent ones when there are lots of others.
@Zylphrex Zylphrex requested a review from a team as a code owner October 30, 2024 18:00
Copy link
Contributor

@viglia viglia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. It's particularly good for when we have only a few chunks.

@Zylphrex Zylphrex merged commit 3ac2a07 into main Oct 31, 2024
12 checks passed
@Zylphrex Zylphrex deleted the txiao/feat/keep-top-n-samples-in-flamegraph branch October 31, 2024 15:44
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.

2 participants