Flight-Recorder | Record and replay flights in Microsoft Flight Simulator | Monitoring library
kandi X-RAY | Flight-Recorder Summary
kandi X-RAY | Flight-Recorder Summary
A simple recorder to record and replay flight in Microsoft Flight Simulator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Flight-Recorder
Flight-Recorder Key Features
Flight-Recorder Examples and Code Snippets
Community Discussions
Trending Discussions on Flight-Recorder
QUESTION
Following this post :
jfr is supported natively in openjdk 11
and it is confirmed by the features list of OpenJDK 11:
328: Flight Recorder
However, from this DZone article, about using JFR-linked option -XX:+UnlockCommercialFeatures
:
OpenJDK doesn’t recognize this option
And when I try for ex. with Gradle: ./gradlew clean -Dorg.gradle.jvmargs="-XX:+UnlockCommercialFeatures"
I get
Process command line: C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin\java.exe -XX:+UnlockCommercialFeatures (...)
Unrecognized VM option 'UnlockCommercialFeatures'
What am I missing here ?
...ANSWER
Answered 2021-Nov-16 at 07:09JFR was a commercial feature in Oracle Java up to Java 1.8 that needed to be specially enabled (using -XX:+UnlockCommercialFeatures
).
With Java 11 and later it is no longer a commercial feature so you don't need this flag.
Actually the linked article states:
JFR Packaging Differences
Oracle JDK 11 emits a warning when using the-XX:+UnlockCommercialFeatures
option, whereas OpenJDK doesn’t recognize this option and reports an error.
And the example below that the author shows doesn't use the -XX:+UnlockCommercialFeatures
.
QUESTION
Java Flight Recorder is now a part of OpenJDK 11 and offers the usage of custom events. After a successful recording, I want to reuse the information within the events (especially my own custom events), but somehow I am unable to read the field content of an event. I can only see the annotations, the name and the type of the fields.
Does anybody know whether this is actually possible?
JFR has a consumer package which allows you to read information from the files. I already apply some of the functions.
What I already tried
First, I access all the fields of an event:
...ANSWER
Answered 2020-Jul-12 at 22:40Here is a short program that illustrates how you can get the values
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Flight-Recorder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page