Javaflame - Capture function arguments, visualize them in a flamegraph
summary
Javaflame captures all function calls including argument and return values and renders them as a standalone HTML flamegraph. It runs as a local JVM agent that calls toString on every argument, so overhead is high and it is not safe for production; demo Spring app exhausts memory until class/method filters restrict instrumentation. Works with unit tests, can target dependency methods (showed repeated prepareStatement selects), and supports a static interceptor hook to print or process captured entries instead of only visualizing.
AI-written summary · about
chapters (10)
- 0:00Introduction to Java flame
- 1:09Limitations of current tools
- 3:31Flame graph fundamentals
- 5:47Core features and setup
- 9:04Demonstrating FizzBuzz
- 13:57Exploring graph features
- 17:20Managing data with filters
- 21:02Advanced interaction analysis
- 26:33Customizing interceptions
- 29:00Custom interceptors and wrap-up
related talks
50mSet Your Code on Fire with FlameGraphs
33mWriting a Java Profiler in Pure Java
46mCPU Profiling on the JVM and Flame Graphs
41mUnleash the Power of Open-Source Java Profilers
42mWrite your own Java Profiler in 240 lines of pure Java
51mThe Power of JDK Flight Recorder: Efficient Profiling and Troubleshooting for Java Applications
45mAnalyzing Safe Flights, and Firey Wrecks with JDK Flight Recorder
50mObservability Beyond the Three Pillars — Continuous Profiling With Alibaba Dragonwell
