You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does this PR do?:
Fixes the generation of JFR dumps so they can be read by the jfr tool by adding startTime to datadog.ProfilerCounter event
Motivation:
The jfr tool could not open the dumps generated by the profiler, failing with:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
at jdk.jfr.consumer.EventParser.parse(EventParser.java:62)
Additional Notes:
How to test the change?:
For Datadog employees:
If this PR touches code that signs or publishes builds or packages, or handles
credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
@manuel-alvarez-alvarez we need to get to the bottom of why the tests fail on class metadata with this change, which might make this change more complex than it first seems. We've never aimed for compatibility with the JFR tool, only with JMC, but if you need this from us we can ensure support (and testing) in a reasonably short time frame. If you have spare cycles to debug this now, don't be discouraged.
@manuel-alvarez-alvarez we need to get to the bottom of why the tests fail on class metadata with this change, which might make this change more complex than it first seems. We've never aimed for compatibility with the JFR tool, only with JMC, but if you need this from us we can ensure support (and testing) in a reasonably short time frame. If you have spare cycles to debug this now, don't be discouraged.
There's no real business need from having support for JFR (just me trying to open the dumps from IntelliJ). I took the opportunity as a weekend lecture to learn about the format of the dumps and profiling in general 😄. Don't waste your time on this, if I find some spare time I'll take it for another ride and see why the tests are failing, but if nothing comes from it we can close the PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?:
Fixes the generation of JFR dumps so they can be read by the
jfrtool by addingstartTimetodatadog.ProfilerCountereventMotivation:
The
jfrtool could not open the dumps generated by the profiler, failing with:Additional Notes:
How to test the change?:
For Datadog employees:
credentials of any kind, I've requested a review from
@DataDog/security-design-and-guidance.Unsure? Have a question? Request a review!