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

add support for graph output #21

Open
monperrus opened this issue Oct 7, 2024 · 3 comments
Open

add support for graph output #21

monperrus opened this issue Oct 7, 2024 · 3 comments

Comments

@monperrus
Copy link
Contributor

see TODO at the bottom of the README

@Stamp9 Stamp9 mentioned this issue Oct 10, 2024
3 tasks
@Stamp9
Copy link
Contributor

Stamp9 commented Oct 30, 2024

@Stamp9
Copy link
Contributor

Stamp9 commented Oct 30, 2024

Hi, @monperrus, for the --json & --dot output, I am wondering what information do we need in the files.

For .json, I generate summary(address & count) of the calls, example can be seen here: https://github.com/chains-project/scsc/blob/poc-graph/scsc/try_exp/0x3451B6b219478037a1AC572706627FC2BDa1e812_21059800_2024_10_27_22_18_51.json

For .dot, I generate file with node, edge and labels, example can be seen here: https://github.com/chains-project/scsc/blob/poc-graph/scsc/traces.dot

Are they what we want?

@monperrus
Copy link
Contributor Author

For .dot, I generate file with node, edge and labels, example can be seen here: poc-graph/scsc/traces.dot

good first version. dot is too primitive because it's not interactive. today, we can generate an HTML page to represent a beautiful graph in an interactive way, using a cool graph JS library.

side-note: we don't print all disjoint subgraphs on the same graph, we print one connected component per file.

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

No branches or pull requests

2 participants