-
Notifications
You must be signed in to change notification settings - Fork 129
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
Color diffusion mode #165
Color diffusion mode #165
Conversation
tests/data/flamegraph/perf-vertx-stacks/perf-vertx-stacks-01-collapsed-all.svg
Outdated
Show resolved
Hide resolved
I personally think the color diffusion mode is a nice addition. I also like the look of the less saturated differential flamegraphs. It makes the text more readable when the sample diffs are larger. On the other hand, I think it makes it harder to see the paler hues. If the number of samples only differs by a small amount, it almost looks like white. At least on my monitor, in the second image below I can barely see the lightest red and blue. |
It would be really good to see some more before/after pictures to judge the effect of this. In general I'm for the change though. |
Codecov Report
@@ Coverage Diff @@
## master #165 +/- ##
==========================================
+ Coverage 88.5% 89.84% +1.33%
==========================================
Files 16 16
Lines 2228 2226 -2
==========================================
+ Hits 1972 2000 +28
+ Misses 256 226 -30
Continue to review full report at Codecov.
|
Looks like I can get some more example data from https://github.com/corpaul/flamegraphdiff/tree/master/demos, let me see what they look like. |
Nope, looks like artificial dataset, or at least just one or two function tweaked. |
OK, here is a more realistic example, an optimization I just tried for my Python memory profiler (yes, I'm generating flamegraphs for my flamegraph-generating project 😁 ). Now, you might say "where did all the blue go!" but if you mouse over the you'll see it's like 0.20% improvement and other similarly tiny changes. 0.20% improvement is mostly noise, so having it be less visible is fine. And maybe it should be slightly more blue. |
I think slightly more contrast might be good, but apart from that I'm happy with it :) |
Beautiful, thank you! |
Ah, could you also add an entry to the "Added" section under "Unreleased" in |
This does a few things:
The idea is that I want to visually draw the viewer's eyes towards the wider frames. Much like a differential flamegraph pulls you towards the places where things got worse (or better) with red (or blue), this highlights the bad bits in a normal flamegraph, i.e. the wider the frame the redder it gets.
So some questions for you: