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

Improve Timing Graph #61

Merged
merged 65 commits into from
Jun 1, 2022
Merged

Improve Timing Graph #61

merged 65 commits into from
Jun 1, 2022

Conversation

kalzoo
Copy link
Contributor

@kalzoo kalzoo commented Apr 5, 2022

Closes #64

TODO:

  • Consider hiding this API behind a feature, such as dot-graph? It's already a breaking change so that shouldn't be much trouble

Fix to Timing Dependency Bug

By way of example, here's the old graph and the new one, for the same program. Note that the second one has fewer memory dependencies.

Broken

graphviz (1)

Fixed

graphviz

Fix to GraphViz API

This PR replaces the brittle templating currently in place with the use of the dot_writer crate so as to offload that logic.

@kalzoo kalzoo changed the title Improve Dot Graph Improve Timing Graph May 3, 2022
@kalzoo kalzoo requested review from dbanty and nilslice and removed request for dbanty May 3, 2022 03:07
@dbanty
Copy link
Contributor

dbanty commented May 3, 2022

+1 to hiding behind a feature to reduce downstream dependency leak.

Copy link
Contributor

@dbanty dbanty left a comment

Choose a reason for hiding this comment

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

I don't know much about the timing graph in particular, but I did leave some Rusty suggestions

src/program/dot.rs Outdated Show resolved Hide resolved
src/program/dot.rs Outdated Show resolved Hide resolved
Base automatically changed from 43-program-calibration-ux to main May 31, 2022 23:01
Copy link
Contributor

@genos genos left a comment

Choose a reason for hiding this comment

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

Nicely done! One note re: consistency of copyright docstring, but (once this passes CI) LGTM

src/lib.rs Show resolved Hide resolved
src/program/graphviz_dot.rs Outdated Show resolved Hide resolved
@kalzoo kalzoo merged commit e10749c into main Jun 1, 2022
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

🎉 This PR is included in version 0.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Timing Graph
6 participants