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

ui: Fixes the bug where flamegraph goes blank for some instrumented profiles #3363

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

manojVivek
Copy link
Contributor

Root cause: This happens when the linearScales's domain range is so high compared to the device width range, making the rate a 0, so no nodes in the flame graph are rendered.

Fixed it by increasing the multiple to the same number of digits as Number.MAX_SAFE_INTEGER, so that the rate is not rounded off to 0.

… that makes the device width range so negligible making it 0
@manojVivek manojVivek requested a review from a team as a code owner June 26, 2023 11:07
Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

Nice find!

@manojVivek manojVivek merged commit 574a9bf into main Jun 26, 2023
@manojVivek manojVivek deleted the flamegraph-instrumented-profiles-fix branch June 26, 2023 11:55
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