跳转到内容

History Panel

此内容尚不支持你的语言。

Pro Feature

Session management features (save, compare, export) require a Pro license. Free tier allows 1 session save per day.


The History Panel allows you to save profiling sessions, compare them against baselines, and export data for analysis. This is essential for tracking performance over time and detecting regressions.

History Panel Overview


  1. Open the Profiler tool window (bottom panel)
  2. Click the History tab

IntelliJ History Tab

  1. Click the GalataJ icon in the sidebar
  2. Expand the Session History section

VS Code History Section


Save your current profiling data to compare later or export for analysis.

  1. While profiling is active, click Save Session button
  2. Enter a descriptive name (e.g., “Before optimization”, “v2.1.0 release”)
  3. Optionally add tags for filtering
  4. Click Save

Save Session Dialog

DataDescription
Method metricsAvg/max CPU time, call count, allocations
Context infoHTTP endpoints, Spring controllers, DB queries
JVM infoJava version, heap size, GC stats
TimestampWhen the session was captured
Source codeMethod source code (if available)

Session Storage

Sessions are stored locally in ~/.galataj/sessions/. They never leave your machine unless you explicitly export them.


A baseline is a reference session that you compare your current (live) performance against. It represents your “known good” state.

ScenarioBaseline Choice
Feature developmentSession before your changes
Performance optimizationSession before optimization
Release validationPrevious release performance
Regression detectionLast known stable version
  1. In the History Panel, find the session you want as baseline
  2. Right-click → Set as Baseline (or click the ⭐ icon)
  3. The baseline session will be marked with a star

Set as Baseline

Baseline Tips

  • Choose a baseline under normal load conditions
  • Save baselines at release milestones
  • Update baseline after intentional performance changes

Compare any two sessions to see what changed - perfect for detecting regressions or verifying optimizations.

Method 1: Compare with Baseline

  1. Select any session in the history
  2. Click Compare with Baseline
  3. View the diff showing improvements and regressions

Compare with Baseline

Method 2: Compare Any Two Sessions

  1. Select first session → Right-click → Compare With…
  2. Select second session from the list
  3. View comparison results

Compare Sessions Dialog

The comparison view shows:

ColumnDescription
MethodClass and method name
BaselineMetrics from baseline session
CurrentMetrics from compared session
DeltaDifference (+ slower, - faster)
Trend↑ Regression, ↓ Improvement, = Unchanged

Compare Results

  • 🟢 Green - Performance improved (faster, less memory)
  • 🔴 Red - Performance regressed (slower, more memory)
  • Gray - No significant change

Export your profiling data for documentation, sharing, or external analysis.

FormatBest For
JSONProgrammatic analysis, CI/CD integration
CSVSpreadsheet analysis, Excel/Google Sheets
HTMLReadable reports, sharing with team

Export one session’s data:

  1. Select session in History Panel
  2. Click Export button (or right-click → Export)
  3. Choose format (JSON, CSV, HTML)
  4. Select destination folder
  5. Click Export

Single Export

Export a comparison between two sessions:

  1. After running a comparison, click Export Compare
  2. Choose format
  3. The export includes:
    • Both sessions’ metrics
    • Delta calculations
    • Trend indicators
    • Summary statistics

Compare Export

Terminal window
# Export latest session
galataj export --format json --output ./profiling-data.json
# Export specific session
galataj export --session-id abc123 --format html --output ./report.html
# Export comparison
galataj export --compare --session1 abc123 --session2 def456 --format csv

Click on any session to see detailed information:

Session Details

Details include:

  • Session name and timestamp
  • Total methods profiled
  • Total CPU time and allocations
  • JVM runtime summary
  • Top hotspot methods

Use filters to find specific sessions:

  • By date - Last 7 days, last month, custom range
  • By tags - Filter by tags you added
  • By name - Search session names
  1. Right-click session → Delete
  2. Confirm deletion

Tip

Deleted sessions cannot be recovered. Consider exporting important sessions before deleting.


Name Sessions Descriptively

Use names like “v2.1.0-before-cache-fix” instead of “session1”

Save at Milestones

Save sessions before/after major changes, releases, and optimizations

Use Tags

Add tags like “production”, “staging”, “feature-x” for easy filtering

Regular Baseline Updates

Update your baseline after verified performance improvements


IssueSolution
Can’t save sessionCheck Pro license: galataj license status
Sessions not appearingRefresh the History Panel
Export failsCheck disk space and write permissions
Compare shows no dataEnsure both sessions have overlapping methods