ddepstographviz 1.0.0
A program to turn dlang dep files to graphviz graphs
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
ddepstographviz
ddepstographviz takes the dmd output of the -deps flag and produces a file that the graphviz package (use fdp) can turn into a pretty, colorful picture of your app's dependencies.
Pointing the mouse on the `*
` on the edges displays what symbols are imported.
package means that no selective imports where used.
Usage
Get dmd deps file -deps="deps.txt"
Run ddepstographviz on it
$ dub run ddepstographviz -- -i deps.txt -o deps.dot
- Run graphviz (fdp) on it
$ fdp deps.dot -T (svg,png,jpg) > deps.(svg,png,jpg)
Example
We use the test of graphqld as an example.
- Displaying all the deps, is normally way to much to see anything.
- We can exclude package by use of the -e options
$ dub run ddepstographviz -- -i deps.txt -o deps.dot -e std,vibe,mir,nullablestore,core,object,diet,taggedalgebraic,taggedunion,eventcore,fixedsizearray
- The graph is still to messy.
So we remove edges between module in the same package, and dependencies that point down in the module tree.
$ dub run ddepstographviz -- -i deps.txt -o deps.dot -e std,vibe,mir,nullablestore,core,object,diet,taggedalgebraic,taggedunion,eventcore,fixedsizearray -t true -d true
About Kaleidic Associates
We are a boutique consultancy that advises a small number of hedge fund clients. We are not accepting new clients currently, but if you are interested in working either remotely or locally in London or Hong Kong, and if you are a talented hacker with a moral compass who aspires to excellence then feel free to drop me a line: laeeth at kaleidic.io
We work with our partner Symmetry Investments, and some background on the firm can be found here:
http://symmetryinvestments.com/about-us/
- Registered by Robert Schadek
- 1.0.0 released 5 years ago
- symmetryinvestments/ddepstographviz
- GPL3
- Copyright © 2019, Symmetry Investments
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.1 2021-Feb-08 1.0.0 2019-Oct-10 ~master 2021-Feb-08 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
13 downloads total
-
- Score:
- 1.4
- Short URL:
- ddepstographviz.dub.pm