AdoptOpenJDK/jitwatch


Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.AdoptOpenJDK:jitwatch:1.5.0'
	}
	dependencies {
		implementation("com.github.AdoptOpenJDK:jitwatch:1.5.0")
	}
	<dependency>
	    <groupId>com.github.AdoptOpenJDK</groupId>
	    <artifactId>jitwatch</artifactId>
	    <version>1.5.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.AdoptOpenJDK" % "jitwatch" % "1.5.0"
        
        

                            
    :dependencies [[com.github.AdoptOpenJDK/jitwatch "1.5.0"]]
        
        

Readme


JITWatch

Log analyser and visualiser for the HotSpot JIT compiler.

  • Video introduction to JITWatch video
  • Slides from my LJC lightning talk on JITWatch slides
<h3>For instructions and screenshots see the wiki</h3> <h3>https://github.com/AdoptOpenJDK/jitwatch/wiki</h3>

The JITWatch user interface is built using JavaFX which is downloaded as a maven dependency for JDK11+.

For pre-JDK11 you will need to use a Java runtime that includes JavaFX.

<h2>maven</h2> <pre>mvn clean package && java -jar ui/target/jitwatch-ui-shaded.jar</pre> <h2>Build an example HotSpot log</h2> <pre># Build the code and then run cd scripts && ./makeDemoLogFile.sh</pre>