-
Notifications
You must be signed in to change notification settings - Fork 420
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
[blocked] Call tree filtering #293
Conversation
Codecov Report
@@ Coverage Diff @@
## master #293 +/- ##
==========================================
- Coverage 35.55% 35.33% -0.22%
==========================================
Files 124 126 +2
Lines 6542 6763 +221
Branches 1415 1466 +51
==========================================
+ Hits 2326 2390 +64
- Misses 3645 3783 +138
- Partials 571 590 +19
Continue to review full report at Codecov.
|
The main problem I see is that "Hide" could mean two things. It could mean "Charge to caller" or it could mean "Exclude from profile" (so like the existing "only show samples where the stack contains X" filter, but only showing samples where the stack does not contain X). I'd actually want both of those to be available... Maybe those could be labeled "Treat as part of caller" and "Exclude" respectively, if we want less-technical labels? |
88290e2
to
83ff4d8
Compare
@mstange This should be ready for review, sorry in advance for the large PR. |
"Drop" / "Include in caller time" ? Or maybe "Merge into caller"? "Merge with caller"? "Fold into caller"? At some point, I'd like the context menu to include 'Category "X"' along with 'Library "Y"'. |
@mstange do you think you could find some time to look at this? I would like to get it merged in. |
I found a few things during testing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found anything to complain about in the code, except for the naming issues. I'll leave it up to you to decide whether to fix the bugs before merging or after.
src/content/profile-data.js
Outdated
thread: Thread, | ||
filter: IndexIntoFuncTable => boolean | ||
filterOutByFunc: IndexIntoFuncTable => boolean, | ||
pruneByFunc: IndexIntoFuncTable => boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these should be called filterOutFrameByFunc and filterOutSubtreeByFunc or something along those lines.
Here's my inspiration for the animation I suggested: http://phlsa.github.io/ff-bubble-animation/ |
83ff4d8
to
cad707d
Compare
cad707d
to
9e68701
Compare
Overcome through a separate implementation. |
This is a UI prototype for filtering. This will provide UI for issues #244 and issue #242.
I'd like to place this UI in a button that opens up, with possibly a text label that goes with it. The placement is arbitrary at this point and probably needs to be adjusted a bit. The button is the same filtering button used throughout all of devtools.
I also tried to find less technical words to describe what was going on, while not sacrificing on the technical accuracy of the filtering operation. The filter panel and the context menu can grow and change with any additional features we wish to add.
I would appreciate any feedback before I started working on the filtering logic part of this.
@bzbarsky @mstange @julienw @ehsan