开发者

How can I make a flow diagram of my program

开发者 https://www.devze.com 2023-03-21 14:56 出处:网络
I have a very large server program written in java. It was written by another devel开发者_JAVA技巧oper who is no longer with the company and is very complex.

I have a very large server program written in java. It was written by another devel开发者_JAVA技巧oper who is no longer with the company and is very complex.

It is made up of 23 packages and I use eclipse.

What I want is a program that will take the source files of my program and create a kind of flow char for the functions. Start with the class that has main and follow it through which classes it calls in its constructor.

Basically I have learned that the program uses interfaces heavily and I want a visual representation of how the server functions instead of tracking through several four line function in interfaces before I get to the real processing function. a flow chart type thing would allow me to see where the function call would end up.

Does anyone know of any program available that could do this for me ?

I don't really mind what format the visual representation is in as long as it is easy to follow.


This is what you are looking for:

http://www.objectaid.com/


The sequence in any program of significant size is so complex that an automatic tool (if it existed) is of no use - too many trees, no forest.

It is reasonable to generate class diagrams and then manually prune them down and organize them to show the organization of the program as you discover it.

To see the real flow of the program, I recommend using debugger breakpoints and then a good profiler. Usually it's relatively easy to find a spot where something important happens - the question usually is "how does it get here?". Take notes; when you think you understand a flow well, make a diagram.

Another diagramming package that I like a lot is PlantUML. It's missing a lot of UML features, but it allows for very rapid creation of diagrams, with the concise source within the .java files, and included in the JavaDoc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号