IntelliJ IDEA Integration
IntelliJ IDEA Integration
Section titled “IntelliJ IDEA Integration”See performance metrics directly in your IntelliJ IDEA code editor.
Installation
Section titled “Installation”- Go to File → Settings → Plugins
- Search for “GalataJ”
- Click Install
- Restart IntelliJ when prompted
Requirements
- IntelliJ IDEA 2023.1 or later
- Java JDK 11+ for your application
Start Profiling
Section titled “Start Profiling”- Run your Java application using your normal Run Configuration
- Go to Run → Start GalataJ Profiling
- Select the JVM you want to profile
- Click Start
The plugin automatically handles everything:
- ✅ Starts the controller
- ✅ Discovers running JVMs
- ✅ Attaches the profiler agent
View Inline Metrics
Section titled “View Inline Metrics”Once profiling is active, performance metrics appear directly above your methods:
Metrics shown:
- Execution time - Average and max time
- Call count - Number of invocations
- Memory - Allocations per call
- Trend - Performance change indicator
Hover for Details
Section titled “Hover for Details”Hover over any method to see detailed metrics:
Profiler Panel
Section titled “Profiler Panel”Open View → Tool Windows → Profiler to see all metrics in one place:
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
Stop Profiling
Section titled “Stop Profiling”When you’re done, go to Run → Stop GalataJ Profiling.
Understanding Metrics
Section titled “Understanding Metrics”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
Settings
Section titled “Settings”Enable/Disable Inline Hints
Section titled “Enable/Disable Inline Hints”- Go to File → Settings → Editor → Inlay Hints
- Find Code Vision → GalataJ
- Toggle on/off
Troubleshooting
Section titled “Troubleshooting”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.
| Issue | Solution |
|---|---|
| No metrics appearing | Check that profiling is active (status bar shows “Profiling”) |
| Metrics not updating | Try Run → Restart GalataJ Profiling |
| Plugin not loading | Restart IntelliJ after installation |
For more help, see Troubleshooting Guide.
Next Steps
Section titled “Next Steps”- VS Code Integration - Use GalataJ in VS Code
- Docker Profiling - Profile containerized apps
- Configuration - Customize settings