Coder Social home page Coder Social logo

Comments (2)

NoiseByNorthwest avatar NoiseByNorthwest commented on August 20, 2024

This is a great idea!
I especially like the fact that it can be fully implemented on web UI side since no additional data is required.
And I agree this could be very useful to highlight a group of functions via a pattern.

Thank you also for having provided a gif, very helpful.

To summarize:

  1. The user must be able to specify several function categories (name + pattern).
    • How exactly ?
  2. These categories will be stored on client side (local storage...).
  3. The user must be able to color by category.
    • That means it will replace the default color scheme and the associated color scale widget. I'm OK with that, this is not anyway the most consistent & relevant part of the UI.
    • Can you detail the behavior on flat profile & flame graph widgets ? For example the flat profile could group by categories or simply colors functions.

Some implementation hints:

  • call rectangles are colored here for time line overview
  • call rectangles are colored here for time line focus
  • one possible way to make widgets aware of this feature is to replicate what is being done for the selected metrics, see here for example
  • feel free to do some clean up / refactoring

from php-spx.

orls avatar orls commented on August 20, 2024

Heh, those code areas are exactly where I've been hacking. I'm glad there's some interest!

My plan for the controls is to display a little panel on click for toggling colour scheme & managing the category definitions.

For flat profile, I was thinking of adding aggregate statistics per-category at the top or bottom. I haven't thought about what to do for the flamegraph - I'll probably leave it alone.

from php-spx.

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.