是否可以同时为分配和itimer使用async-profiler [英] Is it possible to use async-profiler for alloc and itimer at the same time

查看:138
本文介绍了是否可以同时为分配和itimer使用async-profiler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我使用async-profiler分别运行cpu和alloc的配置文件,但希望有可能在相同的持续时间中使用它们?鉴于支持的输出格式类型,这仅在使用JFR时才有意义.

While using async-profiler I run the profiles for cpu and alloc separately but was hoping it would be possible to use them as part of the same duration? Given the output format types supported, this only seems to make sense if JFR is used.

推荐答案

是的,此功能在

Yes, this feature is implemented in v2.0 branch of async-profiler. The branch is currently under development, use with care. Planned for the next major release.

要在命令行中指定多个事件,请使用

To specify multiple events in the command line, use

profiler.sh -e cpu,alloc -f out.jfr ...

与代理选项相同:

-agentpath:/path/to/libasyncProfiler.sh=start,event=cpu,event=alloc,file=out.jfr,...

您已经正确猜到了,这仅适用于JFR输出.

As you've correctly guessed, this works only with JFR output.

对于反馈,请评论相应的 GitHub问题

For the feedback, comment the corresponding GitHub issue.

这篇关于是否可以同时为分配和itimer使用async-profiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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