Although many suggestions point to pycallgraph and phpcallgraph , I donβt think that they will do what you want to do - this is for runtime analysis, whereas it looks like you want to do static analysis.
I donβt know any tools for this, but considering that you are only interested in the work of one class and the relationships within this class, make a little effort so that you can crack something together into your choice of scripting language, which
- Parses all function names and variable declarations within a class and stores them somewhere
- Uses the information from step 1 to determine the use of variables, variable assignments and function calls, as well as the functions in which they occur.
- Convert this information to the graph format used by
dot , and then use the dot to create a directed graph showing the dependencies.
Given the effort, if the class is not too large, I will be tempted to just do it manually!
Good luck, and if you find a solution, you will really like it.
source share