Skip to content

profiling: fix differential flamegraph colors #93853

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Jun 18, 2025

Fixes DE-141

@JonasBa JonasBa requested a review from a team as a code owner June 18, 2025 19:56
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 18, 2025
@@ -360,8 +360,8 @@ export const makeLightChonkFlamegraphTheme = (
// Preset colors
FRAME_APPLICATION_COLOR: hexToColorChannels(theme.colors.blue400, 0.4),
FRAME_SYSTEM_COLOR: hexToColorChannels(theme.colors.red400, 0.3),
DIFFERENTIAL_DECREASE: hexToColorChannels(theme.colors.yellow200, 1),
DIFFERENTIAL_INCREASE: hexToColorChannels(theme.colors.red300, 1),
DIFFERENTIAL_DECREASE: hexToColorChannels(theme.colors.blue400, 0.6),
Copy link
Member Author

Choose a reason for hiding this comment

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

The chonk colors are too strong, and the regular scale is either too strong or too dimmed out to be able to see the colors. Given that a lot of the colors here are custom, I think it's fine to do this, but at some point in the future, it'd be great to either adopt the chart scale across profiling, or have a dedicated flamegraph scale

@JonasBa JonasBa merged commit bae57cb into master Jun 20, 2025
46 checks passed
@JonasBa JonasBa deleted the jb/profiling/DE-141 branch June 20, 2025 13:57
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93853      +/-   ##
==========================================
- Coverage   88.03%   84.19%   -3.85%     
==========================================
  Files       10335    10333       -2     
  Lines      596759   596737      -22     
  Branches    23194    23194              
==========================================
- Hits       525355   502413   -22942     
- Misses      70945    93865   +22920     
  Partials      459      459              

@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants