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

Focus on function in call tree #566

Merged
merged 2 commits into from Sep 1, 2017

Conversation

gregtatum
Copy link
Member

I held off on attempting to do the inverted version of this, as I wasn't sure if it was needed or made sense. Plus it's a smaller PR which is always nicer.

@codecov
Copy link

codecov bot commented Aug 31, 2017

Codecov Report

Merging #566 into master will increase coverage by 1.29%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #566      +/-   ##
==========================================
+ Coverage      57%   58.29%   +1.29%     
==========================================
  Files         131      131              
  Lines        7026     7076      +50     
  Branches     1529     1544      +15     
==========================================
+ Hits         4005     4125     +120     
+ Misses       2631     2573      -58     
+ Partials      390      378      -12
Impacted Files Coverage Δ
.../components/calltree/ProfileCallTreeContextMenu.js 0% <0%> (ø) ⬆️
src/reducers/profile-view.js 82.33% <100%> (+0.13%) ⬆️
src/profile-logic/transforms.js 82.35% <84.09%> (+0.23%) ⬆️
src/profile-logic/call-tree.js 93.18% <0%> (+3.03%) ⬆️
src/test/fixtures/profiles/text-to-profile.js 97.5% <0%> (+97.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c08eb9a...be979a0. Read the comment docs.

@@ -197,6 +201,14 @@ class ProfileCallTreeContextMenu extends PureComponent {
<MenuItem onClick={this.handleClick} data={{ type: 'focus-subtree' }}>
Focus on subtree
</MenuItem>
{inverted
Copy link
Contributor

@mstange mstange Sep 1, 2017

Choose a reason for hiding this comment

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

I think you could have this menu item visible in all modes. Xcode calls this "Focus on calls made by <function>", so it's clear in which direction you're going regardless of the current view mode.

Copy link
Contributor

@mstange mstange left a comment

Choose a reason for hiding this comment

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

Looks good!

@gregtatum gregtatum merged commit cc5edd3 into firefox-devtools:master Sep 1, 2017
@gregtatum gregtatum added the data transform Call tree transformations, e.g. Merge Function, Focus function label Oct 5, 2017
@gregtatum gregtatum modified the milestone: Call Tree Transforms Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data transform Call tree transformations, e.g. Merge Function, Focus function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants