Coder Social home page Coder Social logo

Comments (6)

apangin avatar apangin commented on June 26, 2024 15

Thank you for your interest in Async-profiler!

I'm not going to compare AP to HP in the documentation for several reasons (this won't be impartial anyway), but I'd like to write a blog post about the motivation of AP: why another tool was needed when there were already Honest Profiler and perf + Flame Graphs.

Meanwhile, before the post is out, I can highlight the main advantages of Async-profiler from my point of view:

  • It samples all running code: not only Java, but native, JVM and even kernel functions, too.
  • It has workarounds for annoying AsyncGetCallTrace bugs (see JDK-8178287). Async-profiler can show correct stack traces in the cases when other tools just fail with "AGCT::Unknown Java[ERR=-5]".
  • Besides CPU profiling, it supports other profiling events like heap allocations, contended locks, perf events, kernel tracepoints.
  • Attach-on-demand capability: it is not necessary to include the agent at application launch time.

However, what I like about Honest Profiler is its infrastructure around collecting and presenting data, including the GUI. In contrast, Async-profiler has just a command-line interface and a couple of output formats that can be visualized with external utilities like Flame Graph. This is not the primary direction of development, I'm not going to spend much time on it, but I'll be glad to accept contributions on the visualization side.

from async-profiler.

apangin avatar apangin commented on June 26, 2024 10

@zagorulkinde Here are the materials from my presentation at CodeOne: https://github.com/apangin/codeone2019-java-profiling
Unfortunately, the talk was not recorded, but I plan to make an article from it.

from async-profiler.

apangin avatar apangin commented on June 26, 2024 6

I've finally held a recorded webinar about async-profiler - 3.5 hours long!
https://www.youtube.com/playlist?list=PLNCLTEx3B8h4Yo_WvKWdLvI9mj1XpTKBr
Materials and code examples are available here.

This question is almost 3 year old now - so many things has changed during this time.

  • UI is no longer a problem, since async-profiler has built-in FlameGraph and call tree generator.
  • It also supports JFR format, compatible with JDK Mission Control and other tools.
  • It can profile selected native functions and specified Java methods.
  • It has wall-clock profiling mode.
  • Since version 2.0, async-profiler is able to record multiple events simultaneously.

More improvements are listed on releases page.

I'd say, the main difference is that async-profiler is currently an active project, and I guess, the original question is not relevant anymore.

from async-profiler.

msridhar avatar msridhar commented on June 26, 2024

Cool thanks! I'd definitely be interested in a blog post but your comment is already quite helpful. We can leave this issue open until the blog post is up or just close it; either is fine with me.

from async-profiler.

apangin avatar apangin commented on June 26, 2024

Yep! That was my intent, too: the open issue will be an additional trigger for me to finish the post some time soon :)

from async-profiler.

zagorulkinde avatar zagorulkinde commented on June 26, 2024

@apangin Andrey hey! Do you have any progress with a blog post?

from async-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.