ondrajz / go-callvis

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

Cannot visualize github.com/alecthomas/gozmq #27

Closed iselind closed 6 years ago

iselind commented 6 years ago

github.com/alecthomas/gozmq seems problematic for go-callvis to handle. I'm guessing because gozmq require cgo.

# % is my prompt
# Get the source, this works great, i have the libzmq3-dev deb-package installed on my machine
% go get -tags zmq_3_x github.com/alecthomas/gozmq
# The following command complain that various symbols are not declared. They are declared, but in the C part of package
% go-callvis github.com/alecthomas/gozmq
# go-callvis show the help pages when i do the following, missing feature?
% go-callvis -tags zmq_3_x github.com/alecthomas/gozmq

Is there any work ongoing to fix this?

ondrajz commented 6 years ago

I'll look into this and let you know. I also accept PR if you'd like to implement this.

ondrajz commented 6 years ago

Hey @iselind the -tags flag is included in the upcoming changes. You can find it in opened PR here: https://github.com/TrueFurby/go-callvis/pull/29 with several other improvements.

The call graph output is now served via HTTP server in SVG format and you can click on packages to change focus.

iselind commented 6 years ago

I'll try it as soon as I can. I'll let you know!