History Panel
Pro Feature
Session management features (save, compare, export) require a Pro license. Free tier allows 1 session save per day.
What is the History Panel?
Section titled “What is the History Panel?”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.
Opening the History Panel
Section titled “Opening the History Panel”IntelliJ IDEA
Section titled “IntelliJ IDEA”- Open the Profiler tool window (bottom panel)
- Click the History tab
VS Code / Cursor / Windsurf
Section titled “VS Code / Cursor / Windsurf”- Click the GalataJ icon in the sidebar
- Expand the Session History section
Saving a Session
Section titled “Saving a Session”Save your current profiling data to compare later or export for analysis.
How to Save
Section titled “How to Save”- While profiling is active, click Save Session button
- Enter a descriptive name (e.g., “Before optimization”, “v2.1.0 release”)
- Optionally add tags for filtering
- Click Save
What Gets Saved
Section titled “What Gets Saved”| Data | Description |
|---|---|
| Method metrics | Avg/max CPU time, call count, allocations |
| Context info | HTTP endpoints, Spring controllers, DB queries |
| JVM info | Java version, heap size, GC stats |
| Timestamp | When the session was captured |
| Source code | Method source code (if available) |
Session Storage
Sessions are stored locally in ~/.galataj/sessions/. They never leave your machine unless you explicitly export them.
What is a Baseline?
Section titled “What is a Baseline?”A baseline is a reference session that you compare your current (live) performance against. It represents your “known good” state.
Common Baseline Use Cases
Section titled “Common Baseline Use Cases”| Scenario | Baseline Choice |
|---|---|
| Feature development | Session before your changes |
| Performance optimization | Session before optimization |
| Release validation | Previous release performance |
| Regression detection | Last known stable version |
Setting a Baseline
Section titled “Setting a Baseline”- In the History Panel, find the session you want as baseline
- Right-click → Set as Baseline (or click the ⭐ icon)
- The baseline session will be marked with a star
Baseline Tips
- Choose a baseline under normal load conditions
- Save baselines at release milestones
- Update baseline after intentional performance changes
Comparing Sessions
Section titled “Comparing Sessions”Compare any two sessions to see what changed - perfect for detecting regressions or verifying optimizations.
Compare Methods
Section titled “Compare Methods”Method 1: Compare with Baseline
- Select any session in the history
- Click Compare with Baseline
- View the diff showing improvements and regressions
Method 2: Compare Any Two Sessions
- Select first session → Right-click → Compare With…
- Select second session from the list
- View comparison results
Understanding Compare Results
Section titled “Understanding Compare Results”The comparison view shows:
| Column | Description |
|---|---|
| Method | Class and method name |
| Baseline | Metrics from baseline session |
| Current | Metrics from compared session |
| Delta | Difference (+ slower, - faster) |
| Trend | ↑ Regression, ↓ Improvement, = Unchanged |
Color Coding
Section titled “Color Coding”- 🟢 Green - Performance improved (faster, less memory)
- 🔴 Red - Performance regressed (slower, more memory)
- ⚪ Gray - No significant change
Exporting Sessions
Section titled “Exporting Sessions”Export your profiling data for documentation, sharing, or external analysis.
Export Formats
Section titled “Export Formats”| Format | Best For |
|---|---|
| JSON | Programmatic analysis, CI/CD integration |
| CSV | Spreadsheet analysis, Excel/Google Sheets |
| HTML | Readable reports, sharing with team |
Single Session Export
Section titled “Single Session Export”Export one session’s data:
- Select session in History Panel
- Click Export button (or right-click → Export)
- Choose format (JSON, CSV, HTML)
- Select destination folder
- Click Export
Compare Export
Section titled “Compare Export”Export a comparison between two sessions:
- After running a comparison, click Export Compare
- Choose format
- The export includes:
- Both sessions’ metrics
- Delta calculations
- Trend indicators
- Summary statistics
Export via CLI
Section titled “Export via CLI”# Export latest sessiongalataj export --format json --output ./profiling-data.json
# Export specific sessiongalataj export --session-id abc123 --format html --output ./report.html
# Export comparisongalataj export --compare --session1 abc123 --session2 def456 --format csvSession Management
Section titled “Session Management”Viewing Session Details
Section titled “Viewing Session Details”Click on any session to see detailed information:
Details include:
- Session name and timestamp
- Total methods profiled
- Total CPU time and allocations
- JVM runtime summary
- Top hotspot methods
Filtering Sessions
Section titled “Filtering Sessions”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
Deleting Sessions
Section titled “Deleting Sessions”- Right-click session → Delete
- Confirm deletion
Tip
Deleted sessions cannot be recovered. Consider exporting important sessions before deleting.
Best Practices
Section titled “Best Practices”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
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| Can’t save session | Check Pro license: galataj license status |
| Sessions not appearing | Refresh the History Panel |
| Export fails | Check disk space and write permissions |
| Compare shows no data | Ensure both sessions have overlapping methods |
Next Steps
Section titled “Next Steps”- AI Integration - Use AI to analyze your profiling data
- Configuration - Customize session settings
- CLI Reference - Command-line session management