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

feat: graphviz visualization support #1759

Merged
merged 23 commits into from
Jan 23, 2023
Merged

feat: graphviz visualization support #1759

merged 23 commits into from
Jan 23, 2023

Conversation

petethepig
Copy link
Member

work in progress. /cc @pavelpashkovsky

const dataUnavailable =
!this.state.flamebearer || this.state.flamebearer.names.length <= 1;
const panes = decidePanesOrder(
this.state.view,
flameGraphPane,
graphvizPane,
Copy link
Member Author

Choose a reason for hiding this comment

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

I did this just to test it, we should move it somewhere else

return `N${srcIndex} -> N${dstIndex} ${renderLabels(labels)}`;
}

export default function toGraphviz(p: Profile): string {
Copy link
Member Author

Choose a reason for hiding this comment

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

this function is not ready yet, hence all the TODOs

@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Base: 66.35% // Head: 66.98% // Increases project coverage by +0.64% 🎉

Coverage data is based on head (aa70576) compared to base (c889352).
Patch coverage: 95.62% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1759      +/-   ##
==========================================
+ Coverage   66.35%   66.98%   +0.64%     
==========================================
  Files         170      173       +3     
  Lines        5554     5875     +321     
  Branches     1252     1575     +323     
==========================================
+ Hits         3685     3935     +250     
- Misses       1860     1929      +69     
- Partials        9       11       +2     
Impacted Files Coverage Δ
...raph/src/FlameGraph/FlamegraphRenderer.module.scss 61.54% <ø> (ø)
packages/pyroscope-flamegraph/src/Toolbar.tsx 85.97% <ø> (+0.26%) ⬆️
packages/pyroscope-flamegraph/src/format/format.ts 73.53% <0.00%> (+0.32%) ⬆️
...e-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx 51.10% <94.12%> (+0.19%) ⬆️
...ges/pyroscope-flamegraph/src/convert/toGraphviz.ts 96.14% <96.14%> (ø)
webapp/javascript/models/query.ts 52.39% <0.00%> (-42.85%) ⬇️
webapp/javascript/ui/LoadingSpinner.tsx 75.00% <0.00%> (-25.00%) ⬇️
.../javascript/redux/reducers/continuous/selectors.ts 41.54% <0.00%> (-22.90%) ⬇️
webapp/javascript/redux/reducers/continuous.ts 33.17% <0.00%> (-7.25%) ⬇️
... and 10 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pavelpashkovsky
Copy link
Contributor

merged with latest main

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
webapp/public/assets/app.js 1006.8 KB (+100.19% 🔺) 20.2 s (+100.19% 🔺) 3.5 s (+42.36% 🔺) 23.6 s
webapp/public/assets/app.css 19.88 KB (+0.53% 🔺) 398 ms (+0.53% 🔺) 0 ms (+100% 🔺) 398 ms
webapp/public/assets/styles.css 9.6 KB (0%) 192 ms (0%) 0 ms (+100% 🔺) 192 ms
packages/pyroscope-flamegraph/dist/index.js 632.75 KB (+384.9% 🔺) 12.7 s (+384.9% 🔺) 2.3 s (+115.15% 🔺) 14.9 s
packages/pyroscope-flamegraph/dist/index.node.js 633.45 KB (+382.73% 🔺) 12.7 s (+382.73% 🔺) 835 ms (+49.48% 🔺) 13.6 s
packages/pyroscope-flamegraph/dist/index.css 8.11 KB (+1.25% 🔺) 163 ms (+1.25% 🔺) 0 ms (+100% 🔺) 163 ms

@petethepig petethepig merged commit ca855d2 into main Jan 23, 2023
@petethepig petethepig deleted the tree2 branch January 23, 2023 06:31
@eh-am eh-am mentioned this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants