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

Flamegraph: Make color by package the default color mode #76137

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented Oct 6, 2023

What is this feature?

Make color by package the default color mode. It has more information that by value, which is also encoded already in the width of a node.

Why do we need this feature?

[Add a description of the problem the feature is trying to solve.]

Who is this feature for?

[Add information on what kind of user the feature is for.]

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@aocenas aocenas requested a review from a team as a code owner October 6, 2023 15:25
@aocenas aocenas added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes add to changelog area/panel/flame-graph and removed no-changelog Skip including change in changelog/release notes labels Oct 6, 2023
}
}, [dataContainer, colorScheme]);
// This makes sure that if we change the data to/from diff profile we reset the color scheme.
useEffect(() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Realized that this part of code that deals with changing the mode if we go between diff/nondiff can be simplified a lot.

@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Oct 6, 2023
@aocenas aocenas merged commit 20d6470 into main Oct 9, 2023
31 checks passed
@aocenas aocenas deleted the aocenas/flamegraph/change-default-color-mode branch October 9, 2023 08:16
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants