~/talk

Writing a Java Profiler in Pure Java

Talkat jPrime 2024 · 2024-05-28..05-29· [java]
slides:none on file

A usable Java profiler runs in 240 lines of pure Java and samples stacks by calling Thread.getAllStackTraces on a background agent thread attached via the Java agent API; samples get aggregated into a compact tree to emit flame graphs and custom JFR events. Built prototypes include an IntelliJ plugin that links flame views back to source, and measured overhead stays around <2% in typical JFR setups.

AI-written summary · about

  1. 0:00Introduction and personal story
  2. 6:29What is profiling and why it matters
  3. 12:09Building a simple Java profiler
  4. 17:55Flame graphs from samples
  5. 21:49Types of existing profilers
  6. 27:10JDK Flight Recorder overview
  7. 30:03Custom events with JFR
  8. 32:12JDK Mission Control demo
  9. 33:38IntelliJ profiler plugin
  10. 35:48Performance impact of profiling
  11. 36:51Continuous profiling options
  12. 37:55Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.