Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加新选项 --wall #2905

Merged
merged 10 commits into from
Oct 4, 2024
Merged

增加新选项 --wall #2905

merged 10 commits into from
Oct 4, 2024

Conversation

ZhaoGuorui666
Copy link
Contributor

根据 async-profiler issue #740 的描述,这个 PR 引入了一个新特性,允许同时进行 CPU 和 Wall clock 的联合分析。

image

可使用以下命令(可以独立设置 CPU 和 Wall clock 分析的间隔):

```bash
profiler start -e cpu -i 10ms --wall 200ms -f out.jfr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个使用文档有问题,命令会执行失败。

Error during processing the command: com.taobao.middleware.cli.CLIException, message:Cannot inject value for option 'interval'

@hengyunabc
Copy link
Collaborator

从原来的 issue 来看, wall 是支持指定时间的,但这个 pr 里, wall 是一个 true/false ,这个貌似不太对。

@ZhaoGuorui666
Copy link
Contributor Author

ZhaoGuorui666 commented Sep 27, 2024

修改成Long读取,单位为ms;
输出文件格式为jfr,通过java -cp converter.jar jfr2flame out.jfr output.html转换成html,结果如下:
image

@hengyunabc hengyunabc added this to the 4.0.2 milestone Oct 4, 2024
@hengyunabc hengyunabc merged commit 59b87ca into alibaba:master Oct 4, 2024
1 check passed
hengyunabc added a commit that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants