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

Better visualize stats/summaries on the call graph #677

Open
8 of 14 tasks
Domiii opened this issue Feb 18, 2022 · 0 comments
Open
8 of 14 tasks

Better visualize stats/summaries on the call graph #677

Domiii opened this issue Feb 18, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Domiii
Copy link
Owner

Domiii commented Feb 18, 2022

Three goals:

  1. Make stats/summaries more visual by adding icons, tooltips and better formatting
    • → one tooltip for text+icon; should suffice to use title attribute.
    • → use a new function formatNumber for each number
      • function formatNumber(x) { return x.toLocaleString('en-us'); }
  2. Add more/better stats/summaries to call graph nodes.

TODO

  • add icon for nTreeContexts (amount of all descendant nodes in subgraph)
    • title = 'Amount of child contexts in subgraph'
  • add icon for nTreeStaticContexts (amount of all descendant static contexts in subgraph)
    • title = 'Amount of static contexts involved in subgraph'
  • add icon for nTreeFileCalled (amount of files touched in subgraph)
    • title = 'Amount of files involved in subgraph'
  • add new stat: nTraces (also w/ icon)
    • title = 'Amount of traces in subgraph. This is a rough measure.'
  • add new stat: nPackages (use packageName)
    • rename moduleName to packageName
  • also enable these stats for ACG nodes (refactor to use the same code, don't copy+paste)
  • add a button to Toolbar to allow toggling stats

More stats (w/ icons):

  • amount of static branches (IfStatement, TertiaryExpression, Loop) that were executed
  • amount of asynchronous schedulers
  • amount of static loop statements that were executed
  • amount of static executed lines of code (maybe? → requires some algorithm to accurately count loc)
  • allow toggling individual stats: Add "stats" button to Toolbar to control which stats to show on each ContextNode call graph node #478
  • label CGRs (call graph roots), indicating what kind of CGR they are (e.g. what kind of asynchronous event scheduled them)
@Domiii Domiii added the enhancement New feature or request label Feb 18, 2022
@Domiii Domiii changed the title Visualize things on the call graph Visualize more summaries on the call graph Feb 20, 2022
@Domiii Domiii changed the title Visualize more summaries on the call graph Better visualize stats/summaries on the call graph Feb 20, 2022
This was referenced Feb 28, 2022
@Domiii Domiii removed the priority label Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants