Pular para o conteúdo

IntelliJ IDEA Integration

Este conteúdo não está disponível em sua língua ainda.

See performance metrics directly in your IntelliJ IDEA code editor.


  1. Go to File → Settings → Plugins
  2. Search for “GalataJ”
  3. Click Install
  4. Restart IntelliJ when prompted

IntelliJ Plugin Installation

Requirements

  • IntelliJ IDEA 2023.1 or later
  • Java JDK 11+ for your application

  1. Run your Java application using your normal Run Configuration
  2. Go to Run → Start GalataJ Profiling
  3. Select the JVM you want to profile
  4. Click Start

Start Profiling

The plugin automatically handles everything:

  • ✅ Starts the controller
  • ✅ Discovers running JVMs
  • ✅ Attaches the profiler agent

JVM Selection


Once profiling is active, performance metrics appear directly above your methods:

Inline Metrics

Metrics shown:

  • Execution time - Average and max time
  • Call count - Number of invocations
  • Memory - Allocations per call
  • Trend - Performance change indicator

Hover over any method to see detailed metrics:

Hover Popup


Open View → Tool Windows → Profiler to see all metrics in one place:

Profiler Panel

Panel features:

  • View all profiled methods
  • Sort by execution time, call count, or trend
  • Filter by package or class
  • Click to navigate to method source

When you’re done, go to Run → Stop GalataJ Profiling.

Stop Profiling


Execution Time

Avg = cumulative average since profiling started
Max = highest time in recent window

Trend

↑ Positive = getting slower
↓ Negative = getting faster

Call Count

Total invocations since profiling started

Allocations

Memory allocated per method call


  1. Go to File → Settings → Editor → Inlay Hints
  2. Find Code Vision → GalataJ
  3. Toggle on/off

Inlay Hints Settings


JVM Not Showing Up?

Make sure your Java application is running, then click Refresh in the JVM selection dialog. If it still doesn’t appear, run galataj doctor in terminal to diagnose.

IssueSolution
No metrics appearingCheck that profiling is active (status bar shows “Profiling”)
Metrics not updatingTry Run → Restart GalataJ Profiling
Plugin not loadingRestart IntelliJ after installation

For more help, see Troubleshooting Guide.