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

Rename flamegraph "Invert" button #456

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

godlygeek
Copy link
Contributor

We've adding a --inverted mode to memray flamegraph causing stacks to be added to the flame graph in reverse order, so that the children of the root are functions that performed allocations and the leaves are thread entry points. Because of this change, we need a different name for the "Invert" button that flips the entire flame graph upside down.

This commit introduces a new toggle button for switching between our default "icicle graph" view (with the root at the top and allocations dangling from it) and the traditional "flame graph" view (with the root at the bottom and allocations rising up from it). The toggle button also gives a visual indication of what mode you're in.

@godlygeek godlygeek requested a review from pradyunsg September 8, 2023 21:00
@godlygeek godlygeek self-assigned this Sep 8, 2023
@godlygeek godlygeek force-pushed the rename_invert_button branch from 5f06c01 to b24c426 Compare September 8, 2023 21:01
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (514af3e) 91.84% compared to head (7be5c45) 91.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #456   +/-   ##
=======================================
  Coverage   91.84%   91.85%           
=======================================
  Files          90       90           
  Lines       10767    10767           
  Branches     1474     1474           
=======================================
+ Hits         9889     9890    +1     
+ Misses        876      875    -1     
  Partials        2        2           
Flag Coverage Δ
cpp 85.15% <ø> (+0.02%) ⬆️
python_and_cython 95.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@godlygeek godlygeek force-pushed the rename_invert_button branch 2 times, most recently from ff3c545 to 541a8fa Compare September 8, 2023 23:02
We've adding a `--inverted` mode to `memray flamegraph` causing stacks
to be added to the flame graph in reverse order, so that the children of
the root are functions that performed allocations and the leaves are
thread entry points. Because of this change, we need a different name
for the "Invert" button that flips the entire flame graph upside down.

This commit introduces a new toggle button for switching between our
default "icicle graph" view (with the root at the top and allocations
dangling from it) and the traditional "flame graph" view (with the root
at the bottom and allocations rising up from it). The toggle button also
gives a visual indication of what mode you're in.

Signed-off-by: Matt Wozniski <[email protected]>
@godlygeek godlygeek force-pushed the rename_invert_button branch from 541a8fa to 7be5c45 Compare September 8, 2023 23:09
@pablogsal pablogsal merged commit d769830 into bloomberg:main Sep 18, 2023
34 checks passed
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.

3 participants