Przejdź do głównej zawartości

Understanding Metrics

GalataJ shows several metrics for each method. Here’s what they mean and how to use them.

Inline Hints Close-up

The average execution time across all calls since profiling started.

ValueWhat it means
< 1msFast — typical for simple methods
1-10msNormal — acceptable for most code
10-100msWorth investigating
> 100msSlow — likely needs optimization

The slowest execution in the recent measurement window.

Why it matters:

  • Max >> Avg means you have occasional slow calls (spikes)
  • Could indicate timeout issues, GC pauses, or resource contention
  • Important for understanding worst-case user experience

Example

If Avg = 5ms but Max = 500ms, something occasionally makes this method very slow. Look for external dependencies, database locks, or GC pressure.


The total number of times the method was called since profiling started.

PatternWhat to look for
Very high calls + low timeCould be N+1 query problem
High calls + high timeMajor performance impact
Low calls + high timeIndividual calls are slow

N+1 Query Detection

If UserRepository.findById shows 1000 calls but UserService.getAll shows only 1 call, you likely have an N+1 query loading users one by one.


Shows how performance is changing over time.

IndicatorMeaning
↑ (up arrow)Getting slower — investigate!
↓ (down arrow)Getting faster — good news
— (no change)Stable performance

Color coding:

  • 🔴 Red trend = Performance regression
  • 🟢 Green trend = Performance improvement
  • ⚪ Gray = No significant change

Getting slower (↑):

  • Data volume growing
  • Memory pressure / GC
  • External service slowdown
  • Code changes

Getting faster (↓):

  • Caching taking effect
  • JIT optimization warming up
  • Load decreasing

Shows bytes allocated per call (when available).

ValueWhat it means
< 1 KBMinimal allocation
1-10 KBNormal for most operations
10-100 KBConsider optimization
> 100 KBHigh allocation — may cause GC pressure

Why It Matters

High allocations lead to more garbage collection, which causes pauses and impacts overall performance.


The inline hints above your methods show a condensed view:

avg 45ms | max 120ms | 1,234 calls | ↑ 15%

Hover over the hint for the full breakdown.

Metric Tooltip


Find Slowest Methods

Sort by Avg descending

Find N+1 Queries

Sort by Calls descending, look for unexpectedly high counts

Find Regressions

Sort by Trend, look for ↑ arrows

Find Memory Issues

Check Alloc column for high values