Skip to content

Commit ab01d12

Browse files
committed
Merge branch 'restructure'
* restructure: (112 commits) minor refactoring minor refactoring changed message to eventType. Fixed expansion highlight size. Removed node only highlight. minor performance improvement - limited background tasks added debug print node count menu item jump to child of single collapsed node in parent hierarchy bug fixed jump to expand tree bug fixed added sql string escaping and minor refactoring Moved part of canvas processing to background thread, minor refactoring and code cleanup enhanced bookmark jump to node renamed classes removed unused classes and refactored removed unused classes Removed unused classes. udpated README.md Refactored entire project. Changed package name csgt removing SplitPaneToggleTest.java added lite mode changed color scheme fixed double graph bug ...
2 parents f9e7938 + 0682768 commit ab01d12

File tree

101 files changed

+7881
-5460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+7881
-5460
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Database
22
/DB/
3+
/Databases/
34

45
# Database logs
56
*.log
@@ -11,4 +12,10 @@ target/
1112
.idea
1213

1314
# UI Images
14-
*.png
15+
*.png
16+
17+
# intelliJ files
18+
*.iml
19+
20+
# screenshots folder
21+
/Screenshots/

CSV_Before_Run_call_trace.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.

CSV_Before_Run_method_definitions.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

CallStackVisualization.iml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Java Call Stack Graph Tool
22
#### A tool to generate a graphical representation of the Java call stack.
3+
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. <br/>
34

45
### Instruction to run tool using Maven.
56
1. Download or clone the repository.<br/>
@@ -10,15 +11,27 @@
1011

1112
### Instruction to run tool using intelliJ.
1213
1. Download or clone the repository.
13-
2. In IntelliJ, create a new project and choose `Create Project from Existing Sources...`. Choose the cloned repository to improt all the file.
14-
3. Ensure that this project is recognized as a Maven project inside IntelliJ.
15-
6. Run the Main java class in `/src/main/java/com/application/Main.java`.
14+
2. In IntelliJ, create a new project and choose `Create Project from Existing Sources...`. Choose the cloned repository to import all the files.
15+
16+
Or.
17+
18+
Right click pom.xml file and click open with then choose IntelliJ.
19+
3. Ensure that this project is recognized as a Maven project inside IntelliJ and all the dependencies are downloaded.
20+
6. Run the Main java class at `<project-root>/src/main/java/com/csgt/Main.java`.
1621

1722
### How to use the tool?
18-
1. Click File -> Select Method Definition log file.
19-
2. Click File -> Select Call Trace file.
20-
3. Click Render -> Run.
21-
4. If you want to start over, click Run -> Reset and redo steps 1 through 3 above.
23+
#### For first time use:
24+
For the first time, the tool requires the log files that should be used to generate the graph.
25+
1. Click `File -> Select Method Definition log file` (⎇ + m).
26+
2. Click `File -> Select Call Trace file` (⎇ + c).
27+
3. Click `Run -> Run` (⎇ + r).
28+
4. To start over, click `Run -> Reset` (⎇ + ⇧ + r) and redo steps 1 to 3 above.
29+
30+
#### For consecutive uses:
31+
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.
32+
1. Click `File -> Load existing database` (⎇ + d).
33+
2. Click ` Run -> Run` (⎇ + r)
34+
3. To start over, click `Run -> Reset` (⎇ + ⇧ + r).
2235

23-
### Generate Log files.
24-
Call Trace and Method Definition log files can be generated by using the shell script [here](https://github.com/omersalar/LogWeaver)
36+
### How to generate Log files for your code?
37+
Call Trace and Method Definition log files can be generated by following the instructions [here](https://github.com/omersalar/LogWeaver).

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.omer.csc895</groupId>
8-
<artifactId>CallStackVisualization</artifactId>
7+
<groupId>com.csgt</groupId>
8+
<artifactId>CallStackGraphTool</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

1111
<build>
@@ -34,7 +34,13 @@
3434
<artifactId>derby</artifactId>
3535
<version>10.13.1.1</version>
3636
</dependency>
37+
<!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
38+
<dependency>
39+
<groupId>commons-lang</groupId>
40+
<artifactId>commons-lang</artifactId>
41+
<version>2.6</version>
42+
</dependency>
3743

3844
</dependencies>
3945

40-
</project>
46+
</project>

src/main/java/com/application/Controller.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)