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

Expose graph option for fwdctl #724

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Expose graph option for fwdctl #724

merged 2 commits into from
Oct 9, 2024

Conversation

rkuris
Copy link
Collaborator

@rkuris rkuris commented Oct 8, 2024

Dump was already dumping the keys and values, so we should keep that, but added in the option of calling the dump() method that produces a digraph of the trie.

Additional changes: hashes and binary values are truncated to 6 characters, followed by an ellipsis, and the graphs are rotated so they go left-right. This makes the graphs a lot prettier.

Partial paths can still be long but truncating them seemed like a bad idea, so they are the only long string in the boxes now.

@rkuris rkuris self-assigned this Oct 8, 2024
Dump was already dumping the keys and values, so we should keep
that, but added in the option of calling the dump() method that
produces a digraph of the trie.

Additional changes: hashes and binary values are truncated to 6
characters, followed by an ellipsis, and the graphs are rotated
so they go left-right. This makes the graphs a lot prettier.

Partial paths can still be long but truncating them seemed like
a bad idea, so they are the only long string in the boxes now.
CI should build with tracing enabled...
@rkuris rkuris merged commit 242abf3 into main Oct 9, 2024
5 checks passed
@rkuris rkuris deleted the rkuris/fwdctl-graph-cmd branch October 9, 2024 04:09
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.

1 participant