CAT - Callgraph Explorer
CAT (CallGraph Analysis Tool): Callgraph Explore is an interactive tool for visualising call graphs of Java programs directly in VSCode. CAT will look for all the methods in your open Java file. You can then select a method and CAT will open a new tab with the call graph of the selected method. Forward and Bacward Callgraph ConstructionCAT allows you to construct both forward and backward call graphs. The forward call graph is a graph that shows the methods that are called by the selected method. The backward call graph is a graph that shows the methods that call the selected method. ExamplesLet us consider the following Java program saved in a filed called ~/Example.java:
To generate a call graph for this program, we can run the following command:
This will generate a call graph in JSON format and save it in a file called ~/Example.json. To visualise the generated call graph, we can run the following command:
By visiting
The user can choose to view the call graph in different formats, such as a tree or a graph by clicking on the settings icon in the top left corner of the visualisation. ContributingWe welcome contributions to CAT! If you'd like to contribute, please follow these steps:
LicenseCAT is released under the BSD 3-Clause License. |