Skip to content

OmerKhureshi/JavaCallStackGraphTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Java Call Stack Graph Tool

A tool to generate a graphical representation of the Java call stack.

This tool generate a tree graph for the call stack using the information in log files for you code. A specific format of log files are 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.

Instruction to run tool using Maven.

  1. Download or clone the repository.
    git clone https://github.com/OmerKhureshi/JavaCallStackGraphTool.git

  2. Since this is a Maven project, use the command below to run the tool from root folder of the repo.
    mvn exec:java -Dexec.mainClass=com.csgt.Main

Instruction to run tool using intelliJ.

  1. Download or clone the repository.

  2. 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.

  3. Ensure that this project is recognized as a Maven project inside IntelliJ and all the dependencies are downloaded.

  4. Run the Main java class at <project-root>/src/main/java/com/csgt/Main.java.

How to use the tool?

For first time use:

For the first time, the tool requires the log files that should be used to generate the graph.

  1. Click File -> Select Method Definition log file (⎇ + m).
  2. Click File -> Select Call Trace file (⎇ + c).
  3. Click Render -> Run (⎇ + r).
  4. To start over, click Render -> Reset (⎇ + ⇧ + r) and redo steps 1 to 3 above.

For consecutive uses:

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.

  1. Click File -> Load existing database (⎇ + d).
  2. Click Render -> Run (⎇ + r)
  3. To start over, click Render -> Reset (⎇ + ⇧ + r).

How to generate Log files for your code?

Call Trace and Method Definition log files can be generated by following the instructions here.

About

A log visualization tool for desktop

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages