-
Notifications
You must be signed in to change notification settings - Fork 118
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
add flame chart mode #125
add flame chart mode #125
Conversation
Codecov Report
@@ Coverage Diff @@
## master #125 +/- ##
==========================================
+ Coverage 90.27% 90.30% +0.02%
==========================================
Files 16 16
Lines 2232 2238 +6
==========================================
+ Hits 2015 2021 +6
Misses 217 217
Continue to review full report at Codecov.
|
I haven't forgotten about this, but would like to see the response to #23 (comment) first, as I think it means that these charts don't actually turn out useful. |
Wow, sorry, I dropped the ball on this even though the referenced comment has now seen some further discussion! I still wonder if it'd be useful to have a "non-collapsing" folder that just turns stacks into the right line format for the flamegraph tool to consume, but I think this is useful even without that (and such a tool should probably be a separate PR anyway). Let me update my review of this, and hopefully we should be able to land this without too much trouble! |
84b1c6a
to
61502d8
Compare
@That3Percent want to give this PR a shot and see whether it produces the kind of output you're after? |
61502d8
to
62bd58e
Compare
I gave this a try and got an error: Using options:
And the following data, which I hope is correct: |
Ohh, interesting, yeah, that error will definitely need to be suppressed for a flame chart. @AnderEnder it's here: inferno/src/flamegraph/merge.rs Lines 131 to 136 in 0bf9331
We'll want that check to be disabled if flamechart mode is on. |
4eb6514
to
3101869
Compare
@That3Percent The latest commit should at least not fail with that error — care to try again? |
@jonhoo and @That3Percent, I added a condition to |
I gave this a try and I'm really happy with the result. This is now much better than the flame graph that Once this makes it into a release on crates.io I'll include it in |
@That3Percent Excellent, glad to hear it! Should be ready for release in not too long. @AnderEnder Could you include the provided input file and the produced output file as a test case? If you get stuck, @jasonrhansen may be able to give you some pointers too. Once we have that, I think this is good to land! |
Oh, and an update to the |
@AnderEnder Attached is a new input file. there were some minor issues with the last one (when I was removing entries that had 0 time, it was possible to have adjacent stacks with the same name that were actually the same stack). |
75b3d54
to
f45b44c
Compare
f45b44c
to
c122c14
Compare
@jonhoo, done. Should commit "make func_frameattrs atribute contidional" be removed from this PR? |
Nope, all good, thanks! |
Released in |
Closes #23