Java飞行记录器以编程方式进行解析 [英] Java flight recorder programmatically parsing

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

问题描述

我正在尝试使用JAVA解析JFR转储. 我关注了这个博客 http://hirt.se/blog/?p=446 . 但是现在不推荐使用这些方法. 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?

推荐答案

正如 Klara 所述,目前尚无正式支持解析器.希望JDK 9将正式支持JFR解析器.现在,您可以使用 Hirt的文档中提到的API.博客.不用担心那些被弃用的东西. :)

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. :)

我已经在我的 jfr-flame-graph 项目中成功使用了JFR解析器.请注意,我的项目使用Maven,并且JFR解析器在Maven Central(或任何其他存储库)中不可用.因此,自述文件中的步骤1"非常重要,它将将JFR解析器jars 复制到本地存储库,您可以将这些jars用作

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飞行记录器以编程方式进行解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆