Skip to content

VS Code Based IDE Integration

Also works with Cursor and Windsurf!

This guide applies to VS Code, Cursor, and Windsurf - they all use the same extension since they’re built on VS Code.


  1. Open Extensions (Ctrl+Shift+X)
  2. Search for “GalataJ”
  3. Click Install

VS Code Extension Installation

Requirements

  • VS Code 1.80 or later
  • Java JDK 11+ for your application

  1. Run your Java application
  2. Open Command Palette (Ctrl+Shift+P)
  3. Run “GalataJ: Start Profiling”
  4. Select the JVM from the list

Start Profiling

The extension automatically handles everything:

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

JVM Selection


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


Click the GalataJ icon in the sidebar to open the panel:

GalataJ 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
  • Connection status indicator

Open Command Palette (Ctrl+Shift+P) and run “GalataJ: Stop 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


Open File → Preferences → Settings and search for “GalataJ”:

Extension Settings

SettingDescription
galataj.cliPathPath to CLI (if not in PATH)
galataj.autoStartAuto-start controller
galataj.showInlineHintsEnable/disable inline hints

JVM Not Showing Up?

Make sure your Java application is running, then try “GalataJ: Refresh JVMs” from Command Palette. If it still doesn’t appear, run galataj doctor in terminal.

IssueSolution
No metrics appearingCheck status bar shows “GalataJ: Connected”
Metrics not updatingTry “GalataJ: Restart Profiling”
Extension not activatingReload VS Code window

For more help, see Troubleshooting Guide.