~/talk

JDK 25's new CPU-Time Profiler

Talkat Jfokus 2026 · 2026-02-02..02-04· [java]
slides:none on file

JDK 25 adds a CPU-time profiler that samples by CPU consumption rather than wall clock, producing one sample per 10ms of CPU time (bounded by a default 500 events/sec). It records tip PCs in a per-thread bounded queue and reconstructs full stacks later using unbiased safe-point based stack walking, so computational hotspots map to CPU usage with about 2–3% overhead. Feature is Linux-only, experimental, can lose samples when queues overflow, and is off by default.

AI-written summary · about

  1. 0:00JDK 25 CPU-Time Profiler intro
  2. 5:54What is a profiler
  3. 7:16Wall-clock profiler limits
  4. 10:07CPU-time profiler fixes sampling
  5. 12:34Demo CPU-time profiler
  6. 15:22Four-year journey
  7. 18:13Async-profiler and OpenJDK
  8. 21:50Reliable stack-trace API
  9. 24:19Profiling API nightmares
  10. 27:08Safe points in profiling
  11. 28:57Unbiased stack walking
  12. 31:49API to CPU-time profiler
  13. 33:15CPU-time profiler details
  14. 36:22Challenges and fixes
  15. 38:08Was it worth it?
  16. 40:25Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.