This tool generate a tree graph for the call stack using the information in log files for you code. A specific format of log file is required for the tool to parse and process the logs. Please see How to generate Log files for you code section below to generate log files for your own code.
-
Download or clone the repository.
-
In IntelliJ, create a new project and choose
Create Project from Existing Sources.... Choose the cloned repository to import all the files.Or.
Right click pom.xml file and click open with then choose IntelliJ.
-
Ensure that this project is recognized as a Maven project inside IntelliJ and all the dependencies are downloaded.
-
Run the Main java class at
<project-root>/src/main/java/com/csgt/Main.java.
For the first time, the tool requires the log files that should be used to generate the graph.
- Click
File -> Select Method Definition log file(⎇ + m). - Click
File -> Select Call Trace file(⎇ + c). - Click
Run -> Run(⎇ + r). - To start over, click
Run -> Reset(⎇ + ⇧ + r) and redo steps 1 to 3 above.
The tool uses an embedded database to store the parsed information from the log files. Therefore for consecutive uses of the same log files, you can point to the previously generated database to generate the graph without processing the log files. The database file can be found at <project-root>/Databases. The file is suffixed with the time stamp.
- Click
File -> Load existing database(⎇ + d). - Click
Run -> Run(⎇ + r) - To start over, click
Run -> Reset(⎇ + ⇧ + r).
Call Trace and Method Definition log files can be generated by following the instructions here.