Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7992: Add API to easily write annotated Java JFR events #457

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jbachorik
Copy link
Collaborator

@jbachorik jbachorik commented Dec 7, 2022

This PR extends the JFR Writer API with the ability to use the custom JFR event types (eg. classes extending jdk.jfr.Event) and register new writer type for them and also directly accept the instances of those types to write them in the recording.


Progress

  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-7992: Add API to easily write annotated Java JFR events (Enhancement - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/457/head:pull/457
$ git checkout pull/457

Update a local copy of the PR:
$ git checkout pull/457
$ git pull https://git.openjdk.org/jmc.git pull/457/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 457

View PR using the GUI difftool:
$ git pr show -t 457

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/457.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 7, 2022

👋 Welcome back jbachorik! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@thegreystone thegreystone changed the title JMC-7992: Add API to easily write annotated Java JFR events 7992: Add API to easily write annotated Java JFR events Oct 14, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Dec 5, 2023

@jbachorik This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@thegreystone
Copy link
Member

Hi Jaroslav! This one is still in draft. Want to get it into JMC 9?

@jbachorik jbachorik marked this pull request as ready for review February 10, 2024 09:54
@openjdk openjdk bot added the rfr label Feb 10, 2024
@mlbridge
Copy link

mlbridge bot commented Feb 10, 2024

Webrevs

@openjdk
Copy link

openjdk bot commented Feb 10, 2024

@jbachorik Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 9, 2024

@jbachorik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@openjdk
Copy link

openjdk bot commented Mar 13, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@jbachorik
Copy link
Collaborator Author

/rebase

@openjdk
Copy link

openjdk bot commented Mar 14, 2024

@jbachorik Unknown command rebase - for a list of valid commands use /help.

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 11, 2024

@jbachorik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@jbachorik
Copy link
Collaborator Author

Please, don't close it, bridgekeeper ;)

@bridgekeeper
Copy link

bridgekeeper bot commented May 9, 2024

@jbachorik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@jbachorik
Copy link
Collaborator Author

A gentle ping ...

@thegreystone
Copy link
Member

Hi @jbachorik! Some tests verifying the registering of some subclass of jdk.jfr.Event, and that also have annotations in it, and that creates a few events of it, would be good.

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 24, 2024

@jbachorik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

break;
}
default: {
//System.err.println("Cannot write type:" + f.getType().getName());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out println

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants