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

render HeapGraph in ASCII art for test harness #150

Open
nikomatsakis opened this issue Mar 3, 2022 · 3 comments
Open

render HeapGraph in ASCII art for test harness #150

nikomatsakis opened this issue Mar 3, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@nikomatsakis
Copy link
Member

Right now we dump the DOT format but that's unreadable. It'd be cool to use something like https://dot-to-ascii.ggerganov.com/ and save the ASCII format.

Relevant research into how this can be done

Using perl seems fine but we'd have to make sure the installation is super easy and automatic and works everywhere. We could also setup a webserver do it or hand-code something similar (e.g., maybe not a "true" rendering but just extracting the foo --my--> bar edges or something).

@nikomatsakis
Copy link
Member Author

@lqd, I'm responding to this comment on this thread:

ASCII output would be super cool, but maybe svg or another image format would be easier and acceptable in the meantime ? It's not really easily readable as text, but neither is a sufficiently large/complicated .dot file. We can easily do svg output in pure rust via https://github.com/nadavrot/layout.

I think what we really want is the ability to specify the "interesting bits" of the heap-graph dump in the #? annotation.

@nikomatsakis
Copy link
Member Author

e.g. "it ought to show this variable in this state"

@nikomatsakis
Copy link
Member Author

so maybe the right way to think about this is more about looking at the things we're trying to test and how to express them

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

1 participant