ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.82k stars 402 forks source link

Requesting dot format #96

Closed suntong closed 2 years ago

suntong commented 2 years ago

The program used to generate dot format output previously. Is it still supported?

I tried with ... -format=dot -file=/tmp/callvis, and I saw two files under /tmp:

-rwxr-x--x 1     518  /tmp/callvis.gv*
-rw-rw---- 1     558  /tmp/callvis.dot

But neither can be consumed by dot:

 cat /tmp/callvis.gv | dot -Tpng -o /tmp/out.png
 cat /tmp/callvis.dot | dot -Tpng -o /tmp/out.png

What's the proper way of doing it? Thx!

PS. Related to https://github.com/ofabry/go-callvis/issues/97. As if there is no official way to break up large graphs, I have to hack into .dot file and break it up myself.

harsh61426 commented 1 year ago

The ... -format=dot -file= doesn't work for me. What is the command that you used? My goal is to obtain all the nodes and edges in a textual representation as in the dot format.

suntong commented 1 year ago

I cannot recall. If you want help on this, better open a new issue instead.