用于 C++ 可视化的 Python 模块代码
我正在寻找可以帮助 grep C++ 代码的 python 模块。我有一个很大的代码库,我想对其进行一些分析。最终我想拿出一个软件的图形地图。应用程序之间会传递大量消息,因此我希望能够捕获这些信息并以可视方式呈现它。我一直在查看一些数据可视化软件包,但只是偶然发现了数学和绘图相关的软件包。
这项工作最好的工具是什么,最好是Python?
I'm looking for python modules that can help with grepping C++ code. I have a large code base that I would like to do some analysis on. Ultimately I would like to come up with a graphical map of the software. There is lots of message passing going on amongst apps so I would like to be able to capture that information and present it visually. I have been looking around at some of the data visualization packages but have only stumbled on math and plotting related ones.
What are the best tools for this job, preferably in python?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
完成这项工作最好的工具是 Graphviz。如果您查看他们的画廊,您会发现您感兴趣的内容以及项目链接。
在语言绑定部分这里有一些Python条目。就我个人而言,我不使用它们,因为点语言格式足够简单,您只需使用 print 语句就可以从 Python 构建相当复杂的图形。
Your best tool for the job is Graphviz. If you look at their gallery you'll find the sort of thing that you're interested in along with links to projects.
Under the language bindings section here there are a few python entries. Personally I don't use them as the dot language format is simple enough that you can build up fairly complex graphs from Python just using print statements.
您可以查看 doxygen 并查看它是否(至少是部分)您想要的。它直接以 html 或 xml 格式生成调用图和类图(我相信您需要安装 dot花哨的图表)。
You ca look at doxygen and see if it does (at least some part of) what you want. It generates call graph and class diagrams directly in html or xml format (I believe you need to have dot installed for fancy graphs).