Bug 568053 - Provide a means to launch with async profiler
Summary: Provide a means to launch with async profiler
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.18   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-20 16:55 EDT by Alex Blewitt CLA
Modified: 2022-01-22 05:37 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2020-10-20 16:55:20 EDT
Async Profiler is a tool from https://github.com/jvm-profiling-tools/async-profiler that uses a library (either at startup or at runtime attach) to perform profiles and other analysis of JVM hosted applications.

It's hosted under an Apache 2 license, and is bundled in with IntelliJ already. It can also capture output format in JFR compatible code, and thus could potentially be used with JMC if that was installed in the platform as well.

I think this would result in a new tab in the Java launch configuration dialog to permit a set of debugging options, such as are able to configure at the command line.

The syntax for launching a Java application with profiling results in the creation of an agentpath command string to be passed to the VM args, so in some sense, it's technically possible to do this already. However, it would be easier if there was a UI to permit entering of the details.

-agentpath:/path/to/libasyncProfiler.so=start,event=[cpu,wall,itimer],filename=[output file],interval=[time in s, ms, us] etc.
Comment 1 Sarika Sinha CLA 2020-10-22 01:57:33 EDT
First we will have to raise CQ and get approval for the same.
Then we need to find out if some one is interested and can spare time to add this feature.

It will definitely be a good addition to Eclipse IDE!