Re: export & public
- Posted by ne1uno Dec 04, 2008
- 1362 views
I haven't tried to translate dis.ex or std.ex maybe that would be an alternative to including the full source dir? for a complicated graph you can use an image editor with zoom to view the pics. possibly you can drag them from the html browser.
text lifted from a posting by Matt 10/08, svn1206 or later.
source/dis.ex
graphviz.org to get graphviz.
make sure graphviz/bin is in your path or make a batch to call it.
$ dot -V should get something like:dot - Graphviz version 2.20.2 (Mon Jul 7 20:50:29 GMT 2008)
exwc EU4\source\dis app --html -g -d appdis to see the graphs start appdis\index.html
Breakdown of the command line:
- dis is just dis.ex (located in the source dir)
- app is your app
- --html tells it to give you html output
- -g suppresses all of the call graphs (this can take a long time, and I don't think you're really interested in this)
- -d appdis tells dis to put its output in the appdis subdir (whichwill be created if necessary).
- By default, it filters out the standard library. You can add the '-s' option to include information on the standard library. Basically, it just looks to see if "std/" is in the path of the file.
Once it's finished, go into the appdis dir, and look at index.html. It will give you a giant diagram of all of the includes in your app. You can click on the file links on the left to see just the details for a specific file (i.e., which files included it, and which files it included).