GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feedback on v4.0 release · async-profiler/async-profiler · Discussion #1224

Feedback on v4.0 release #1224

apangin started this conversation in General
Feedback on v4.0 release #1224
@apangin apangin
Apr 8, 2025 · 2 comments · 4 replies
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

apangin
Apr 8, 2025
Maintainer

v4.0

Features

  • Binary converter #895, Converter enhancements #905: jfrconv binary and numerous converter enhancements
  • Heatmap converter #944: Interactive Heatmap
  • nativemem - Native memory profiler #1064: Native memory leak profiler
  • An option to display instruction addresses #1002: An option to display instruction addresses
  • Optimize wall clock profiling #1007: Optimize wall clock profiling
  • Productize VMStructs-based stack walker #1073: Productize VMStructs-based stack walker: --cstack vm/vmx
  • add asprof_get_thread_local_data #1169: C API for accessing thread-local profiling context

Improvements

  • Profiling crashes in NMethod::isNMethod with JDK 23-ea #923: Support JDK 23+
  • Solve musl and glibc compatibility issues #952: Solve musl and glibc compatibility issues; link libstdc++ statically
  • Add an asprof argument to specify the path of libasyncProfier.so in the container #955: --libpath option to specify path to libasyncProfiler.so in a container
  • An option to coarsen flame graphs #1018: --grain converter option to coarsen flame graphs
  • Add --nostop to always start profiler recording even when --ttsp or --start/--end are used #1046: --nostop option to continue profiling outside --begin/--end window
  • Implement new '--inverted' option to flip graphs vertically #1178: --inverted option to flip flame graphs vertically
  • Reset CallTraceStorage counters before reporting live objects. #1009: Allows collecting allocation and live object traces at the same time
  • An option to accumulate JFR events in memory instead of flushing to a file #925: An option to accumulate JFR events in memory instead of flushing to a file
  • Support debuginfod #929: Load symbols from debuginfod cache
  • Sample contended locks by overflowing interval bucket #982: Sample contended locks by overflowing interval bucket
  • Filter native frames in allocation profile #993: Filter native frames in allocation profile
  • Flame Graph: alt+click to remove stacks #896: FlameGraph: Alt+Click to remove stacks
  • FlameGraph: navigation through search results #1097: FlameGraph: N/Shift+N to navigate through search results
  • jfrconv looses --threads setting when reversing an HTML graph to HTML #1182: Retain by-thread grouping when reversing FlameGraph
  • Log when no samples are collected #1167: Log when no samples are collected
  • User-space part of a trace is not reported if Kernel symbols are unavailable #1044: Fall back to ctimer for CPU profiling when perf_events are unavailable
  • Count missed samples when estimating total CPU time in ctimer mode #1068: Count missed samples when estimating total CPU time in ctimer mode
  • support tsc mode on aarch64 using cntvct_el0 #1142: Use counter-timer register for timestamps on ARM64
  • support clock=tsc without a JVM #1123: Support clock=tsc without a JVM
  • add demangling of V0 Rust symbols #1070: Demangle Rust v0 symbols
  • Optimize wall clock profiling #1007: Use ExecutionSample event for CPU profiling and WallClockSample for Wall clock profiling
  • Obtain can_generate_sampled_object_alloc_events JVMTI capability only when needed #1011: Obtain can_generate_sampled_object_alloc_events JVMTI capability only when needed
  • Intercept java.util.concurrent locks more efficiently #1013: Intercept java.util.concurrent locks more efficiently
  • Configure alternative profiling signal #759: Discover available profiling signal automatically
  • Potential for time skew in JFR event time? #884: Record event timestamps early
  • Error not progagated if jattach fails to load asyncProfiler lib #885: Print error message if JVM fails to load libasyncProfiler
  • Unsupported event type when trying to trace with a tracepoint #892: Resolve tracepoint id in asprof
  • Suppress dynamic attach warning on JDK 21+

Bug fixes

  • Crash in ThreadFilter::accept #1143: Crash on macOS when using thread filter
  • Parsing concurrently loaded libraries on Linux is error-prone #1125: Fixed parsing concurrently loaded libraries
  • jfr print fails when a recording has empty pools #1095: jfr print fails when a recording has empty pools
  • Log related crash and bugs #1084: Fixed Logging related races
  • Parse both .rela.dyn and .rela.plt of libraries. #1074: Parse both .rela.dyn and .rela.plt sections
  • page cache profiling with filemap:mm_filemap_add_to_page_cache event #1003: Support both tracefs and debugfs for kernel tracepoints
  • Profiling output respects loglevel. #986: Profiling output respects loglevel
  • Avoid JVM crash by deleting JNI refs after calling GetMethodDeclaringClass #981: Avoid JVM crash by deleting JNI refs after GetMethodDeclaringClass
  • Segmentation fault on Azul Zing #934: Fix crash on Zing in a native thread
  • Crash inside ElfParser::ElfParser #843: Fix race between parsing and concurrent unloading of shared libraries
  • Async Profiler causes VM to become unresponsive #1147, AP can deadlock the JVM is used alongside tcmalloc #1151: Deadlocks with jemalloc and tcmalloc profilers
  • Stack walking fixes for ARM64
  • Converter fixes for jfrsync profiles
  • Fixed parsing non-PIC executables and shared objects with non-standard section layout
  • Fixed recursion in pthread_create when using native profiling API
  • Fixed crashes on Alpine when profiling native apps
  • Fixed warnings with -Xcheck:jni
  • Fixed "Unsupported JVM" on OpenJ9 JDK 21
  • Fixed DefineClass crash on OpenJ9
  • JfrReader should handle custom events properly
  • Handle truncated JFRs

Project Infrastructure

  • Restructure and update documentation
  • Implement test framework; add new integration tests
  • Unit test framework for C++ code
  • Run CI on all supported platforms
  • Test multiple JDK versions in CI
  • Add GHA to validate license headers
  • Add Markdown checker and formatter
  • Add Issue and Pull Request templates
  • Add Contributing Guidelines and Code of Conduct
  • Run static analyzer and fix found issues (Fix possible uninitialized variable access, method_class. #1034, Initialize rem_* in DwarfParser.parseInstructions. #1039, Increase setup_lib_path buf size to PATH_MAX #1049, Initialize CodeCache to NULL. #1051, Out of bounds access in getBreakpoint() #1098)
  • Provide Dockerfile for building async-profiler release packages
  • Publish nightly builds automatically

This discussion was created from the release Native memory profiling and Heatmaps.
You must be logged in to vote
All reactions

Replies: 2 comments · 4 replies

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

SirYwell
Apr 9, 2025

Hi, thanks for the release!

I'm wondering how maven publishing works. Is that part still done manually? Also, it would be great if the maven artifact could be documented somewhere (unless I missed it all the time?).

You must be logged in to vote
All reactions
2 replies
@apangin
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

apangin Apr 11, 2025
Maintainer Author

Thank you for your interest in async-profiler.
Yes, Maven artifacts are published manually. Version 4.0 has been just published on Maven Central.

FWIW, javadoc is available at https://profiler.tools/javadoc
It is somewhat scarce, but there is not much to document, actually.
Basic concept of using Java API is described here.

All reactions
@SirYwell
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

SirYwell Apr 14, 2025

Thanks!

All reactions
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

hayscoder
Apr 10, 2025

Thank you for the release! Really excited to use the nativemem feature. I am also waiting like a puppy at the door for it be added to Maven. Is it there yet? Is it there yet? I need to put it in a non-local container and due to processes and red tape it is pretty prohibitive to get it there outside of a maven dependency.

Is it there yet? ;)

Thanks again for all the work in this release!

You must be logged in to vote
All reactions
2 replies
@apangin
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

apangin Apr 11, 2025
Maintainer Author

Thank you for your feedback.
I'm pleased to announce that async-profiler 4.0 has been also published to Maven Central.

All reactions
@hayscoder
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

hayscoder Apr 11, 2025

Oooo, EXCITED! Thank you! (I just looked and it isn't there yet ... probably takes a bit to go through their scans and get published. Will be checking a few times a day!)

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💬
General
Labels
None yet
3 participants
@apangin @SirYwell @hayscoder
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.