Our Delphi Unit Dependency Scanner (DUDS) has been updated with a couple of new features.
Our Delphi Unit Dependency Scanner (DUDS) has been updated with a couple of new features.
The first allows you to export the dependency tree to XML.
The second builds a CSV file that you can import into Gephi (http://gephi.github.io/). Gephi is open source and allows you to build a graph from your unit relationships.
Thanks to Zigmund Bulinsh for the ideas.
DUDS is now open source. You can find it on GitHub along with a link to the latest installer - https://github.com/norgepaul/DUDS/blob/master/README.md
http://gephi.github.io
The first allows you to export the dependency tree to XML.
The second builds a CSV file that you can import into Gephi (http://gephi.github.io/). Gephi is open source and allows you to build a graph from your unit relationships.
Thanks to Zigmund Bulinsh for the ideas.
DUDS is now open source. You can find it on GitHub along with a link to the latest installer - https://github.com/norgepaul/DUDS/blob/master/README.md
http://gephi.github.io
Nice, exactly what I was looking for earlier this morning - tried Icarus and it just failed finding where some unit was used :)
ReplyDeleteI noticed one bug though. When switching to list view and then typing any uppercase letter in the filter edit it does not show anything.
Stefan Glienke - Thanks and fixed. I'll upload a new build later today.
ReplyDeleteAwesome!
ReplyDeleteFound more circular refs than I was comfortable with... sigh...
ReplyDeleteSuggestions for further enhancements:
- Highlighting of classes, types, variables or constants that are referenced in circular references.
+lars fosdal - The DUDs parser is pretty basic and only capable of extracting the linked units. Perhaps in the future I could incorporate +roman yankovsky's DelphiAST parser and look a little deeper than just the unit names and relationships.
ReplyDeleteF.x. Unused types, constants, variables as well :)
ReplyDeletePaul Thornton There are many useful things which can be accomplished by relatively simple tools. I built one back in D6 to discover the set of all components in a massive project, as we were preparing to move to a new release of Delphi. Simple tool, but useful. With that framework in place, I found occasion to add scans for other information mining.
ReplyDeleteIn each case, and for multiple reasons, I could not get what I needed from a commercial tool.
I've uploaded a new build with fixes for the
ReplyDeleteissues reported today. Thanks testers :)
your tool is very useful, but gephi is mesmerizing!
ReplyDeleteSuggestion - highlight item not in path and add option to add item's Path to the search path.
ReplyDeleteThe link to download your Delphi Unit Dependency Scanner is broken! Where ca be downloaded: seems quite useful.
ReplyDeleteFabio VITALE - DUDS is now open source. I've updated the post to point to the GitHub repository.
ReplyDeleteThank you Paul!! This is great
ReplyDelete