本文介绍了Java飞行记录器以编程方式解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用JAVA解析JFR转储。
我关注了这个博客,。
但是这些方法现在已被弃用。 JFR到JAVA是否有任何支持的解析器?如果没有,你能指出我是否有可能从JFR转储中检索数据?

I'm trying to Parse JFR dump using JAVA.I followed this blog, http://hirt.se/blog/?p=446 .But these methods are deprecated now. Is there any supported parsers for JFR to JAVA? if not can you point me is it possible to retrieve data from JFR dump?

推荐答案

。不要担心那些被弃用的人。 :)

As Klara mentioned, there is no officially supported parser. Hopefully the JFR parser will be supported officially in JDK 9. For now, you can use the APIs mentioned in Hirt's blog. Don't worry about those being deprecated. :)

我在项目。请注意,我的项目使用Maven,并且Jven解析器在Maven Central(或任何其他存储库)中不可用。因此,自述文件中的步骤1很重要,它将

I have successfully used JFR parser in my jfr-flame-graph project. Please note that my project uses Maven and the JFR parsers are not available in Maven Central (or any other repository). Therefore the "Step 1" in the README is important and it'll copy JFR parser jars to a local repository and you can use those jars as dependencies in your pom.xml

我希望这有帮助。

这篇关于Java飞行记录器以编程方式解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 08:48
查看更多