|
|
Task Dependencies
|
|
|
=================
|
|
|
|
|
|
In the debugging checks mode, Swift is able to produce [dot](http://www.linuxdevcenter.com/pub/a/linux/2004/05/06/graphviz_dot.html) files which can be transformed to png. Below is an example of graph.
|
|
|
Swift is able to produce [dot](http://www.linuxdevcenter.com/pub/a/linux/2004/05/06/graphviz_dot.html) files which can be transformed to png. Below is an example of graph.
|
|
|
![dependency_graph](/uploads/91ca06979703c4ca56a21321d97c9ebe/dependency_graph.png)
|
|
|
|
|
|
How to Produce Them
|
|
|
-------------------
|
|
|
|
|
|
First compile swift with the option '--enable-debugging-checks' and run the code (until getting a message "Writing dependencies").
|
|
|
|
|
|
Then you just need to run the command 'dot -Tpng dependency_graph.dot -o dependency_graph.png' in order to generate the image. |
|
|
\ No newline at end of file |
|
|
These are written to the file `dependency_graph.dot` at the start of each run and
|
|
|
can be visualised using the command `plot_task_dependencies.sh` in the `examples/` directory. |
|
|
\ No newline at end of file |