GithubHelp home page GithubHelp logo

Comments (5)

mstange avatar mstange commented on June 9, 2024

Also, having the ability "un-drop" a specific function would be very useful.

For example, you may want to drop samples in GC, find the heaviest JS function (by JS self-time), focus that function, and un-drop GC.

from profiler.

mstange avatar mstange commented on June 9, 2024

Proposed UI:

Screenshot 2023-06-22 at 2 04 56 PM
Screenshot 2023-06-22 at 2 05 32 PM

from profiler.

mstange avatar mstange commented on June 9, 2024

I've noticed some additional cases where reordering the drop transform with the rest of the transform stack doesn't preserve the result.

Case 1: Focus + Drop with recursion

If you have two samples:
A -> B -> C
A -> B -> A
Focus on B, Drop A. Now only the A->B->C sample remains.
Unfocus B. Now all samples are gone! This is somewhat unexpected.

Case 2: Drop + Collapse

If you have two samples
A -> B -> C
A -> B -> D
Drop C. Then collapse B. There should be only one sample remaining, but with the proposed implementation (dropping at the end, after all transforms are applied), both samples would remain!

I'm not yet sure what to do about this.

from profiler.

gregtatum avatar gregtatum commented on June 9, 2024

I feel like creating a drop Set and merge Set preserves the non-commutative nature of transforms. This way if you do 10 drops in a row, it would all be in a single set on the transform stack, e.g.

{ type: "drop", funcIndex: Set<IndexIntoFuncTable> }

from profiler.

gregtatum avatar gregtatum commented on June 9, 2024

The UI you propose could be done inline in the existing bar. I'm wondering if you could also make it overflow: auto so that even if you have 100 entries, you could still navigate it. Or maybe it's worth not putting it in a bar and just have some UI similar to your 51 dropped functions that opens a modal or dropdown.

from profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.